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

index 26ced716e8a875f1c4c5c9527b856475dce83f9e..9f3e944e73532a92c5213ce95e7633fe6bc4c212 100644 (file)
@@ -47,7 +47,7 @@ class SharedIE(InfoExtractor):
         video_url = self._html_search_regex(
             r'data-url="([^"]+)"', video_page, 'video URL')
         title = base64.b64decode(self._html_search_meta(
-            'full:title', webpage, 'title')).decode('utf-8')
+            'full:title', webpage, 'title').encode('utf-8')).decode('utf-8')
         filesize = int_or_none(self._html_search_meta(
             'full:size', webpage, 'file size', fatal=False))
         thumbnail = self._html_search_regex(