From: Sergey M․ Date: Tue, 19 Jan 2016 15:20:45 +0000 (+0600) Subject: [extractor/generic] Extend dailymotion embed regex X-Git-Tag: 2016.01.23~39 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=1fa2b9841ddafd41c3aebe40976445b3b7087f9e;p=youtube-dl.git [extractor/generic] Extend dailymotion embed regex --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index b3f8efc80b..0baa17e8d8 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1402,7 +1402,7 @@ class GenericIE(InfoExtractor): # Look for embedded Dailymotion player matches = re.findall( - r']+?src=(["\'])(?P(?:https?:)?//(?:www\.)?dailymotion\.com/embed/video/.+?)\1', webpage) + r'<(?:embed|iframe)[^>]+?src=(["\'])(?P(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage) if matches: return _playlist_from_matches( matches, lambda m: unescapeHTML(m[1]))