added .decode('ascii')
authorM.Yasoob Khalid <yasoob.khld@gmail.com>
Wed, 26 Jun 2013 14:41:55 +0000 (19:41 +0500)
committerM.Yasoob Khalid <yasoob.khld@gmail.com>
Wed, 26 Jun 2013 14:41:55 +0000 (19:41 +0500)
youtube_dl/extractor/wimp.py

index 9ff5112a6bf94a3feaba708f67638110c6e55a75..a548e0fa0668c154a7b3a36f48fe192d11c4e4d7 100644 (file)
@@ -13,8 +13,8 @@ class WimpIE(InfoExtractor):
         title = self._search_regex('\<meta name\="description" content="(.+?)" \/\>',webpage, 'video title')
         thumbnail_url = self._search_regex('\<meta property\=\"og\:image" content\=\"(.+?)\" />',webpage,'video thumbnail')
         googleString = self._search_regex("googleCode = '(.*?)'", webpage,'file url')
-        googleString = base64.b64decode(googleString)
-        final_url = self._search_regex(b'","(.*?)"', googleString,'final video url')
+        googleString = base64.b64decode(googleString).decode('ascii')
+        final_url = self._search_regex('","(.*?)"', googleString,'final video url')
         ext = final_url.split('.')[-1]
         return [{
             'id':        video_id,