1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-24 00:46:51 +00:00

[generic] Support data-video-url for YouTube embeds (Fixes #2862)

This commit is contained in:
anovicecodemonkey 2014-05-18 23:15:09 +09:30
parent 4ea5c7b70d
commit 3442b30ab2

View 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)