From: Jaime Marquínez Ferrándiz Date: Thu, 19 Dec 2013 20:02:25 +0000 (+0100) Subject: [blinkxx] Add support for youtube videos X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=768df745385a283f4df3a38ee4734feec518ec87;p=youtube-dl [blinkxx] Add support for youtube videos --- diff --git a/youtube_dl/extractor/blinkx.py b/youtube_dl/extractor/blinkx.py index 48f16b692..e118f2e9f 100644 --- a/youtube_dl/extractor/blinkx.py +++ b/youtube_dl/extractor/blinkx.py @@ -54,6 +54,10 @@ class BlinkxIE(InfoExtractor): }) elif m['type'] == 'original': duration = m['d'] + elif m['type'] == 'youtube': + yt_id = m['link'] + self.to_screen(u'Youtube video detected: %s' % yt_id) + return self.url_result(yt_id, 'Youtube', video_id=yt_id) elif m['type'] in ('flv', 'mp4'): vcodec = remove_start(m['vcodec'], 'ff') acodec = remove_start(m['acodec'], 'ff')