Browse Source

In MetacafeIE return a url if YoutubeIE should do the job

rtmp_test
Jaime Marquínez Ferrándiz 12 years ago
parent
commit
532d797824
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      youtube_dl/InfoExtractors.py

+ 1
- 2
youtube_dl/InfoExtractors.py View File

@ -723,8 +723,7 @@ class MetacafeIE(InfoExtractor):
# Check if video comes from YouTube # Check if video comes from YouTube
mobj2 = re.match(r'^yt-(.*)$', video_id) mobj2 = re.match(r'^yt-(.*)$', video_id)
if mobj2 is not None: 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 # Retrieve video webpage to extract further information
request = compat_urllib_request.Request('http://www.metacafe.com/watch/%s/' % video_id) request = compat_urllib_request.Request('http://www.metacafe.com/watch/%s/' % video_id)


Loading…
Cancel
Save