]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[generic] Support data-video-url for YouTube embeds (Fixes #2862)
authoranovicecodemonkey <anovicecodemonkey13435@mailinator.com>
Sun, 18 May 2014 13:45:09 +0000 (23:15 +0930)
committeranovicecodemonkey <anovicecodemonkey13435@mailinator.com>
Sun, 18 May 2014 13:45:09 +0000 (23:15 +0930)
youtube_dl/extractor/generic.py

index 0e5cf0efbd0867e0daeb06992e561eefc5262326..69381f7773e9fff2127b50dea1637a43da2b8b4f 100644 (file)
@@ -473,7 +473,7 @@ class GenericIE(InfoExtractor):
 
         # Look for embedded YouTube player
         matches = re.findall(r'''(?x)
-            (?:<iframe[^>]+?src=|embedSWF\(\s*)
+            (?:<iframe[^>]+?src=|data-video-url=|embedSWF\(\s*)
             (["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/
                 (?:embed|v)/.+?)
             \1''', webpage)