Ver Fonte

[shared] Fix for python 3.2

Sergey M․ há 10 anos atrás
pai
commit
43150d7ac3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      youtube_dl/extractor/shared.py

+ 1 - 1
youtube_dl/extractor/shared.py

@@ -47,7 +47,7 @@ class SharedIE(InfoExtractor):
         video_url = self._html_search_regex(
         video_url = self._html_search_regex(
             r'data-url="([^"]+)"', video_page, 'video URL')
             r'data-url="([^"]+)"', video_page, 'video URL')
         title = base64.b64decode(self._html_search_meta(
         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(
         filesize = int_or_none(self._html_search_meta(
             'full:size', webpage, 'file size', fatal=False))
             'full:size', webpage, 'file size', fatal=False))
         thumbnail = self._html_search_regex(
         thumbnail = self._html_search_regex(