[jukebox] call YoutubeIE if necessary
authormc2avr <mc2avr@googlemail.com>
Tue, 25 Jun 2013 14:51:09 +0000 (16:51 +0200)
committermc2avr <mc2avr@googlemail.com>
Tue, 25 Jun 2013 14:51:09 +0000 (16:51 +0200)
youtube_dl/extractor/jukebox.py

index 95b9fd06db1c8d2d38a65a18723beaaf0334eac1..5eb255bf7fa63089e628263a04c9862af407cac9 100644 (file)
@@ -41,8 +41,8 @@ class JukeboxIE(InfoExtractor):
             if mobj is None:
                 raise ExtractorError(u'Cannot extract video url')
             youtube_url = unescapeHTML(mobj.group('youtube_url')).replace('\/','/')
-            #TODO: call YoutubeIE !?
-            raise ExtractorError(u'found YT video. Please run youtube-dl again and use the following link: '+youtube_url+' ')
+            self.to_screen(u'Youtube video detected')
+            return self.url_result(youtube_url,ie='Youtube')
         video_url = unescapeHTML(mobj.group('video_url')).replace('\/','/')
         video_ext = unescapeHTML(mobj.group('video_ext'))