mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-30 17:14:03 +01:00
parent
f3b3fe16af
commit
3358f89361
|
@ -82,7 +82,7 @@ def _get_subtitles(self, sub_url, video_id):
|
||||||
# http://animedigitalnetwork.fr/components/com_vodvideo/videojs/adn-vjs.min.js
|
# http://animedigitalnetwork.fr/components/com_vodvideo/videojs/adn-vjs.min.js
|
||||||
dec_subtitles = unpad_pkcs7(aes_cbc_decrypt_bytes(
|
dec_subtitles = unpad_pkcs7(aes_cbc_decrypt_bytes(
|
||||||
compat_b64decode(enc_subtitles[24:]),
|
compat_b64decode(enc_subtitles[24:]),
|
||||||
binascii.unhexlify(self._K + 'ab9f52f5baae7c72'),
|
binascii.unhexlify(self._K + '7fac1178830cfe0c'),
|
||||||
compat_b64decode(enc_subtitles[:24])))
|
compat_b64decode(enc_subtitles[:24])))
|
||||||
subtitles_json = self._parse_json(dec_subtitles.decode(), None, fatal=False)
|
subtitles_json = self._parse_json(dec_subtitles.decode(), None, fatal=False)
|
||||||
if not subtitles_json:
|
if not subtitles_json:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user