]> git.bitcoin.ninja Git - youtube-dl/commitdiff
added b'' to my regex expression in order to solve the error on python 3
authorM.Yasoob Khalid <yasoob.khld@gmail.com>
Wed, 26 Jun 2013 13:46:05 +0000 (18:46 +0500)
committerM.Yasoob Khalid <yasoob.khld@gmail.com>
Wed, 26 Jun 2013 13:46:05 +0000 (18:46 +0500)
youtube_dl/extractor/wimp.py

index 811b37cc1bb01c89ae582d91eced2d9a40bcaef3..9ff5112a6bf94a3feaba708f67638110c6e55a75 100644 (file)
@@ -14,7 +14,7 @@ class WimpIE(InfoExtractor):
         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('","(.*?)"', googleString,'final video url')
+        final_url = self._search_regex(b'","(.*?)"', googleString,'final video url')
         ext = final_url.split('.')[-1]
         return [{
             'id':        video_id,