[blinkxx] Add support for youtube videos
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 19 Dec 2013 20:02:25 +0000 (21:02 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 19 Dec 2013 20:02:25 +0000 (21:02 +0100)
youtube_dl/extractor/blinkx.py

index 48f16b6926985af20a139a497bcf1f6105b97ccc..e118f2e9f7064ef5880e5589e94e01cd75b16d59 100644 (file)
@@ -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')