From: Sergey M․ Date: Fri, 12 Feb 2016 16:03:10 +0000 (+0600) Subject: [extractor/generic] Improve dailymotion embed detection (Closes #8521, closes #8325) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5a4905924d15bb2bdc0a80f6fd41a869a9787d38;p=youtube-dl [extractor/generic] Improve dailymotion embed detection (Closes #8521, closes #8325) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index bf61ab2e7..ede9801bb 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1413,7 +1413,7 @@ class GenericIE(InfoExtractor): # Look for embedded Dailymotion player matches = re.findall( - r'<(?:embed|iframe)[^>]+?src=(["\'])(?P(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage) + r'<(?:(?:embed|iframe)[^>]+?src=|input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=)(["\'])(?P(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage) if matches: return _playlist_from_matches( matches, lambda m: unescapeHTML(m[1]))