commit 5a4905924d15bb2bdc0a80f6fd41a869a9787d38 parent b826035dd5948d598e29bc17c9d08e3c4d77abbc Author: Sergey M․ <dstftw@gmail.com> Date: Fri, 12 Feb 2016 22:03:10 +0600 [extractor/generic] Improve dailymotion embed detection (Closes #8521, closes #8325) Diffstat:
M | youtube_dl/extractor/generic.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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<url>(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage) + r'<(?:(?:embed|iframe)[^>]+?src=|input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=)(["\'])(?P<url>(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage) if matches: return _playlist_from_matches( matches, lambda m: unescapeHTML(m[1]))