[chilloutzone] Fix for python 3.2
authorSergey M․ <dstftw@gmail.com>
Thu, 21 May 2015 18:03:47 +0000 (00:03 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 May 2015 18:03:47 +0000 (00:03 +0600)
youtube_dl/extractor/chilloutzone.py

index c922f695905d70e4052ddfa5c8f336c01221413b..0206d96db4670fb29a40353839dae15911b9c6d3 100644 (file)
@@ -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