]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Merged, modified and compiled Dailymotion pull request #446 by @Steap
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Sun, 30 Sep 2012 19:45:43 +0000 (21:45 +0200)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Sun, 30 Sep 2012 19:45:43 +0000 (21:45 +0200)
youtube-dl
youtube-dl.exe
youtube_dl/InfoExtractors.py

index fd5e09c3b710e6b833f7fc4a67fa14b4141d3eb2..1055d246d3a9230e3d51f37bef20d0dbc2112716 100755 (executable)
Binary files a/youtube-dl and b/youtube-dl differ
index bf7ba04d0360c41e5f92fe16347acf6f6a29e0b7..2b82e43f2f88da48a77dd549d997c8f372b1da2f 100755 (executable)
Binary files a/youtube-dl.exe and b/youtube-dl.exe differ
index dca26a85aaf5a9a375325057570a22009753fb07..8d428b25dcd1ff828044881b1ff7dd89705fd12d 100644 (file)
@@ -637,7 +637,7 @@ class DailymotionIE(InfoExtractor):
                        self._downloader.trouble(u'ERROR: invalid URL: %s' % url)
                        return
 
-               video_id = mobj.group(1)
+               video_id = mobj.group(1).split('_')[0].split('?')[0]
 
                video_extension = 'mp4'
 
@@ -663,7 +663,7 @@ class DailymotionIE(InfoExtractor):
                else: max_quality = 'ldURL'
                mobj = re.search(r'"' + max_quality + r'":"(.+?)"', flashvars)
                if mobj is None:
-                       mobj = re.search(r'"video_url":"(.*?)",', urllib.unquote(webpage))
+                       mobj = re.search(r'"video_url":"(.*?)",', flashvars)
                if mobj is None:
                        self._downloader.trouble(u'ERROR: unable to extract media URL')
                        return