diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-12 22:03:10 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-12 22:03:10 +0600 |
commit | 5a4905924d15bb2bdc0a80f6fd41a869a9787d38 (patch) | |
tree | 1e08180a3a00379dfbdc22cc95b7bc9df91b967d /youtube_dl/extractor | |
parent | b826035dd5948d598e29bc17c9d08e3c4d77abbc (diff) |
[extractor/generic] Improve dailymotion embed detection (Closes #8521, closes #8325)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 |
1 files changed, 1 insertions, 1 deletions
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<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])) |