[jukebox] call YoutubeIE if necessary

pull/8/head
mc2avr 12 years ago
parent 28ef06f7c2
commit 14fbdc9cdd

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

Loading…
Cancel
Save