Update yt_dlp/extractor/anvato.py

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
sepro 2024-11-12 23:34:23 +01:00 committed by GitHub
parent b10d82d4fb
commit 496b865eb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -233,7 +233,7 @@ class AnvatoIE(InfoExtractor):
input_data = f'{server_time}~{md5_text(video_data_url)}~{md5_text(server_time)}'
auth_secret = bytes(aes_encrypt(
list(input_data[:64]).encode(), list(self._AUTH_KEY)))
list(input_data[:64].encode()), list(self._AUTH_KEY)))
query = {
'X-Anvato-Adst-Auth': base64.b64encode(auth_secret).decode('ascii'),
'rtyp': 'fp',