aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-30 14:36:45 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-30 14:36:45 +0600
commit1a5b77dc21384c462e0be86a1638cafd15a6e236 (patch)
treedb0c39b86a41feb9c80d7994517af59c31989026 /youtube_dl
parentb2cf6543b21bbe0954c45b35b1402eaca5187c0d (diff)
[crunchyroll] Fix python 3.2
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/crunchyroll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index 4ac537a6d..41f0c736d 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/youtube_dl/extractor/crunchyroll.py
@@ -76,8 +76,8 @@ class CrunchyrollIE(InfoExtractor):
self._login()
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)
def obfuscate_key_aux(count, modulo, start):