aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-12-05 16:12:02 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-12-05 16:12:02 +0100
commit796db212952605606502fd40aa83007f08524cb2 (patch)
tree8b607d02be755c98ff4bf0c4e0101994da50fb47
parent535d7b681b05a37a3c2549c7501eb7fe9c8a5f4e (diff)
downloadyoutube-dl-796db212952605606502fd40aa83007f08524cb2.tar.xz
[metacafe] Fix video url extraction (closes #7763)
-rw-r--r--youtube_dl/extractor/metacafe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py
index 3c786a36d..5b0b42608 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 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)