From: Sergey M․ Date: Thu, 21 May 2015 18:03:47 +0000 (+0600) Subject: [chilloutzone] Fix for python 3.2 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=06947add03b6b619292812a771993d3365b0e7e5;p=youtube-dl [chilloutzone] Fix for python 3.2 --- diff --git a/youtube_dl/extractor/chilloutzone.py b/youtube_dl/extractor/chilloutzone.py index c922f6959..0206d96db 100644 --- a/youtube_dl/extractor/chilloutzone.py +++ b/youtube_dl/extractor/chilloutzone.py @@ -57,7 +57,7 @@ class ChilloutzoneIE(InfoExtractor): base64_video_info = self._html_search_regex( r'var cozVidData = "(.+?)";', webpage, 'video data') - decoded_video_info = base64.b64decode(base64_video_info).decode("utf-8") + decoded_video_info = base64.b64decode(base64_video_info.encode('utf-8')).decode('utf-8') video_info_dict = json.loads(decoded_video_info) # get video information from dict