[blinkxx] Add support for youtube videos
[youtube-dl] / 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')