From: Sergey M․ Date: Thu, 21 May 2015 18:09:15 +0000 (+0600) Subject: [rtve.es:alacarta] Fix for python 3.2 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=afe8b594be53161f68189e15a65b4e9c6eba0b35;p=youtube-dl [rtve.es:alacarta] Fix for python 3.2 --- 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]