]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[funnyordie] Fix video url extraction
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 20 Sep 2013 11:05:34 +0000 (13:05 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 20 Sep 2013 11:05:34 +0000 (13:05 +0200)
youtube_dl/extractor/funnyordie.py

index f3d86a711c749734e78b210682f034d37e4536cb..2ccdb70733e9b07cc2fc925630cde0a48a739b4b 100644 (file)
@@ -21,7 +21,8 @@ class FunnyOrDieIE(InfoExtractor):
         video_id = mobj.group('id')
         webpage = self._download_webpage(url, video_id)
 
-        video_url = self._search_regex(r'type="video/mp4" src="(.*?)"',
+        video_url = self._search_regex(
+            [r'type="video/mp4" src="(.*?)"', r'src="([^>]*?)" type=\'video/mp4\''],
             webpage, u'video URL', flags=re.DOTALL)
 
         info = {