diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-05-22 00:09:15 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-05-22 00:09:15 +0600 |
commit | afe8b594be53161f68189e15a65b4e9c6eba0b35 (patch) | |
tree | 4fdceddf32f6653083424d1a1c0e2dd29996afad /youtube_dl | |
parent | 878563c847fa5248eedbd44187536dec04643eaf (diff) |
[rtve.es:alacarta] Fix for python 3.2
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/rtve.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py index 849300140..82cd98ac7 100644 --- a/youtube_dl/extractor/rtve.py +++ b/youtube_dl/extractor/rtve.py @@ -17,7 +17,7 @@ from ..utils import ( def _decrypt_url(png): - encrypted_data = base64.b64decode(png) + encrypted_data = base64.b64decode(png.encode('utf-8')) text_index = encrypted_data.find(b'tEXt') text_chunk = encrypted_data[text_index - 4:] length = struct_unpack('!I', text_chunk[:4])[0] |