diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-28 23:10:54 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-02-28 23:15:13 +0530 |
commit | 65f6e807804d2af5e00f2aecd72bfc43af19324a (patch) | |
tree | af8867ce5b7a2fa57193d33192b663d71e98822e /yt_dlp/extractor/ivi.py | |
parent | b059188383eee4fa336ef728dda3ff4bb7335625 (diff) |
[dependencies] Simplify `Cryptodome`
Closes #6292, closes #6272, closes #6338
Diffstat (limited to 'yt_dlp/extractor/ivi.py')
-rw-r--r-- | yt_dlp/extractor/ivi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/ivi.py b/yt_dlp/extractor/ivi.py index 96220bea9..fa5ceec95 100644 --- a/yt_dlp/extractor/ivi.py +++ b/yt_dlp/extractor/ivi.py @@ -91,7 +91,7 @@ class IviIE(InfoExtractor): for site in (353, 183): content_data = (data % site).encode() if site == 353: - if not Cryptodome: + if not Cryptodome.CMAC: continue timestamp = (self._download_json( @@ -105,8 +105,8 @@ class IviIE(InfoExtractor): query = { 'ts': timestamp, - 'sign': Cryptodome.Hash.CMAC.new(self._LIGHT_KEY, timestamp.encode() + content_data, - Cryptodome.Cipher.Blowfish).hexdigest(), + 'sign': Cryptodome.CMAC.new(self._LIGHT_KEY, timestamp.encode() + content_data, + Cryptodome.Blowfish).hexdigest(), } else: query = {} @@ -126,7 +126,7 @@ class IviIE(InfoExtractor): extractor_msg = 'Video %s does not exist' elif site == 353: continue - elif not Cryptodome: + elif not Cryptodome.CMAC: raise ExtractorError('pycryptodomex not found. Please install', expected=True) elif message: extractor_msg += ': ' + message |