]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
In MetacafeIE return a url if YoutubeIE should do the job
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 9 Apr 2013 22:06:03 +0000 (00:06 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 9 Apr 2013 22:06:03 +0000 (00:06 +0200)
youtube_dl/InfoExtractors.py

index 81eaddc7260333e70a01be3ea354edfc7513f339..b7371365ac7e431808ca9927beb70c4e0b0e1635 100755 (executable)
@@ -723,8 +723,7 @@ class MetacafeIE(InfoExtractor):
         # Check if video comes from YouTube
         mobj2 = re.match(r'^yt-(.*)$', video_id)
         if mobj2 is not None:
-            self._downloader.download(['http://www.youtube.com/watch?v=%s' % mobj2.group(1)])
-            return
+            return [self.url_result('http://www.youtube.com/watch?v=%s' % mobj2.group(1))]
 
         # Retrieve video webpage to extract further information
         request = compat_urllib_request.Request('http://www.metacafe.com/watch/%s/' % video_id)