diff options
author | Yen Chi Hsuan <[email protected]> | 2016-07-06 23:37:54 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2016-07-06 23:37:54 +0800 |
commit | ad213a1d74d41e798ed065d4285ebc25135e1138 (patch) | |
tree | 76fab047d9ffc0caf3b68f077d7fad5e559ce250 /youtube_dl/extractor/dailymotion.py | |
parent | 43f1e4e41e1900786e7d5186d2844e9b307bc05e (diff) | |
download | youtube-dl-ad213a1d74d41e798ed065d4285ebc25135e1138.tar.gz youtube-dl-ad213a1d74d41e798ed065d4285ebc25135e1138.zip |
[francetv] Recognize more Dailymotion embedded videos
Closes #9955
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r-- | youtube_dl/extractor/dailymotion.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py index 15bfc59b2..1f92823b7 100644 --- a/youtube_dl/extractor/dailymotion.py +++ b/youtube_dl/extractor/dailymotion.py @@ -112,6 +112,13 @@ class DailymotionIE(DailymotionBaseInfoExtractor): } ] + @staticmethod + def _extract_urls(webpage): + # Look for embedded Dailymotion player + matches = re.findall( + r'<(?:(?:embed|iframe)[^>]+?src=|input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=)(["\'])(?P<url>(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage) + return list(map(lambda m: unescapeHTML(m[1]), matches)) + def _real_extract(self, url): video_id = self._match_id(url) |