Browse Source

[metacafe] Fix video url extraction (closes #7763)

totalwebcasting
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
796db21295
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/metacafe.py

+ 2
- 2
youtube_dl/extractor/metacafe.py View File

@ -154,10 +154,10 @@ class MetacafeIE(InfoExtractor):
# Extract URL, uploader and title from webpage
self.report_extraction(video_id)
video_url = None
mobj = re.search(r'(?m)&mediaURL=([^&]+)', webpage)
mobj = re.search(r'(?m)&(?:media|video)URL=([^&]+)', webpage)
if mobj is not None:
mediaURL = compat_urllib_parse_unquote(mobj.group(1))
video_ext = mediaURL[-3:]
video_ext = determine_ext(mediaURL)
# Extract gdaKey if available
mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)


Loading…
Cancel
Save