A feature-rich command-line audio/video downloader
[metacafe] Fix video url extraction (closes #7763)
Jaime Marquínez Ferrándiz796db2129526
diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.pyindex 3c786a36df..5b0b426086 100644--- a/youtube_dl/extractor/metacafe.py+++ b/youtube_dl/extractor/metacafe.py@@ -154,10 +154,10 @@ class MetacafeIE(InfoExtractor):# Extract URL, uploader and title from webpageself.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 availablemobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)