diff options
author | Ismael Mejia <iemejia@gmail.com> | 2013-08-26 04:03:40 +0200 |
---|---|---|
committer | Ismael Mejia <iemejia@gmail.com> | 2013-08-28 00:33:12 +0200 |
commit | 06a401c845289344bfe8998a0acad07f79fe7818 (patch) | |
tree | 21006d0073cc901010d8793f95293bc2e5d6a2cf /youtube_dl/extractor/dailymotion.py | |
parent | bd2dee6c67b837bdebdd28d10d9586129021330e (diff) | |
parent | d4051a8e051a06ddeab905a4b5fcc7ddb70952bf (diff) |
Merge branch 'master' into subtitles_rework
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r-- | youtube_dl/extractor/dailymotion.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py index f54ecc569..003b1d8c3 100644 --- a/youtube_dl/extractor/dailymotion.py +++ b/youtube_dl/extractor/dailymotion.py @@ -1,5 +1,6 @@ import re import json +import itertools import socket from .common import InfoExtractor @@ -33,7 +34,7 @@ class DailyMotionSubtitlesIE(NoAutoSubtitlesIE): self._downloader.report_warning(u'video doesn\'t have subtitles') return {} -class DailymotionIE(DailyMotionSubtitlesIE): +class DailymotionIE(DailyMotionSubtitlesIE, InfoExtractor): """Information Extractor for Dailymotion""" _VALID_URL = r'(?i)(?:https?://)?(?:www\.)?dailymotion\.[a-z]{2,3}/video/([^/]+)' @@ -43,7 +44,7 @@ class DailymotionIE(DailyMotionSubtitlesIE): u'file': u'x33vw9.mp4', u'md5': u'392c4b85a60a90dc4792da41ce3144eb', u'info_dict': { - u"uploader": u"Alex and Van .", + u"uploader": u"Alex and Van .", u"title": u"Tutoriel de Youtubeur\"DL DES VIDEO DE YOUTUBE\"" } } @@ -85,9 +86,9 @@ class DailymotionIE(DailyMotionSubtitlesIE): for key in ['stream_h264_hd1080_url','stream_h264_hd_url', 'stream_h264_hq_url','stream_h264_url', 'stream_h264_ld_url']: - if info.get(key): # key in info and info[key]: + if info.get(key):#key in info and info[key]: max_quality = key - self.to_screen(u'%s: Using %s' % (video_id, key)) + self.to_screen(u'Using %s' % key) break else: raise ExtractorError(u'Unable to extract video URL') |