aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/dailymotion.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <[email protected]>2016-07-06 23:37:54 +0800
committerYen Chi Hsuan <[email protected]>2016-07-06 23:37:54 +0800
commitad213a1d74d41e798ed065d4285ebc25135e1138 (patch)
tree76fab047d9ffc0caf3b68f077d7fad5e559ce250 /youtube_dl/extractor/dailymotion.py
parent43f1e4e41e1900786e7d5186d2844e9b307bc05e (diff)
downloadyoutube-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.py7
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)