]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/downloader/hls.py
[dependencies] Simplify `Cryptodome`
[yt-dlp.git] / yt_dlp / downloader / hls.py
index 29d6f6241111a786ec66b792db1d29cef99342de..f2868dc52bb10c6b5ad64a3fbf50266a8e00a89e 100644 (file)
@@ -70,7 +70,7 @@ def real_download(self, filename, info_dict):
         can_download, message = self.can_download(s, info_dict, self.params.get('allow_unplayable_formats')), None
         if can_download:
             has_ffmpeg = FFmpegFD.available()
-            no_crypto = not Cryptodome and '#EXT-X-KEY:METHOD=AES-128' in s
+            no_crypto = not Cryptodome.AES and '#EXT-X-KEY:METHOD=AES-128' in s
             if no_crypto and has_ffmpeg:
                 can_download, message = False, 'The stream has AES-128 encryption and pycryptodomex is not available'
             elif no_crypto: