Browse Source

[crunchyroll] Fix python 3.2

totalwebcasting
Sergey M․ 10 years ago
parent
commit
1a5b77dc21
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/crunchyroll.py

+ 2
- 2
youtube_dl/extractor/crunchyroll.py View File

@ -76,8 +76,8 @@ class CrunchyrollIE(InfoExtractor):
self._login() self._login()
def _decrypt_subtitles(self, data, iv, id): def _decrypt_subtitles(self, data, iv, id):
data = bytes_to_intlist(base64.b64decode(data))
iv = bytes_to_intlist(base64.b64decode(iv))
data = bytes_to_intlist(base64.b64decode(data.encode('utf-8')))
iv = bytes_to_intlist(base64.b64decode(iv.encode('utf-8')))
id = int(id) id = int(id)
def obfuscate_key_aux(count, modulo, start): def obfuscate_key_aux(count, modulo, start):


Loading…
Cancel
Save