Browse Source

[generic] Find embedded dailymotion videos (Fixes #1848)

master
Philipp Hagemeister 11 years ago
parent
commit
355e4fd07e
1 changed files with 9 additions and 0 deletions
  1. 9
      youtube_dl/extractor/generic.py

9
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'<iframe[^>]+?src=(["\'])(?P<url>(?: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'<meta property="og:url"[^>]*?content="(.*?bandcamp\.com.*?)"', webpage)
if mobj is not None:

Loading…
Cancel
Save