From: Philipp Hagemeister Date: Sun, 1 Dec 2013 00:21:33 +0000 (+0100) Subject: [generic] Find embedded dailymotion videos (Fixes #1848) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=355e4fd07e7f9c0632d9d78415675f8b5cc3c2ce;p=youtube-dl [generic] Find embedded dailymotion videos (Fixes #1848) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 37671430a..10ae06263 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -195,6 +195,15 @@ class GenericIE(InfoExtractor): return self.playlist_result( urlrs, playlist_id=video_id, playlist_title=video_title) + # Look for embedded Dailymotion player + matches = re.findall( + r']+?src=(["\'])(?P(?:https?:)?//(?:www\.)?dailymotion.com/embed/video/.+?)\1', webpage) + if matches: + urlrs = [self.url_result(unescapeHTML(tuppl[1]), 'Dailymotion') + for tuppl in matches] + return self.playlist_result( + urlrs, playlist_id=video_id, playlist_title=video_title) + # Look for Bandcamp pages with custom domain mobj = re.search(r']*?content="(.*?bandcamp\.com.*?)"', webpage) if mobj is not None: