From: anovicecodemonkey Date: Sun, 18 May 2014 13:45:09 +0000 (+0930) Subject: [generic] Support data-video-url for YouTube embeds (Fixes #2862) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=3442b30ab2a5f168caa45a7371aca0f4103fdd86;p=youtube-dl [generic] Support data-video-url for YouTube embeds (Fixes #2862) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 0e5cf0efb..69381f777 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -473,7 +473,7 @@ class GenericIE(InfoExtractor): # Look for embedded YouTube player matches = re.findall(r'''(?x) - (?:]+?src=|embedSWF\(\s*) + (?:]+?src=|data-video-url=|embedSWF\(\s*) (["\'])(?P(?:https?:)?//(?:www\.)?youtube\.com/ (?:embed|v)/.+?) \1''', webpage)