Ver código fonte

[funnyordie] Fix video url extraction

Jaime Marquínez Ferrándiz 12 anos atrás
pai
commit
1a810f0d4e
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      youtube_dl/extractor/funnyordie.py

+ 2 - 1
youtube_dl/extractor/funnyordie.py

@@ -21,7 +21,8 @@ class FunnyOrDieIE(InfoExtractor):
         video_id = mobj.group('id')
         video_id = mobj.group('id')
         webpage = self._download_webpage(url, video_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)
             webpage, u'video URL', flags=re.DOTALL)
 
 
         info = {
         info = {