1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[extractor/generic] Extend dailymotion embed regex

This commit is contained in:
Sergey M․ 2016-01-19 21:20:45 +06:00
parent 9fbd0822aa
commit 1fa2b9841d

View File

@ -1402,7 +1402,7 @@ def _playlist_from_matches(matches, getter=None, ie=None):
# Look for embedded Dailymotion player
matches = re.findall(
r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?dailymotion\.com/embed/video/.+?)\1', webpage)
r'<(?:embed|iframe)[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?dailymotion\.com/(?:embed|swf)/video/.+?)\1', webpage)
if matches:
return _playlist_from_matches(
matches, lambda m: unescapeHTML(m[1]))