projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gputechconf] Add new extractor(closes #5775)
[youtube-dl]
/
youtube_dl
/
extractor
/
metacafe.py
diff --git
a/youtube_dl/extractor/metacafe.py
b/youtube_dl/extractor/metacafe.py
index 3c786a36dfb6c8908668cdf3191e660487862c82..67d6271e1ad107aceddaa2c8b4bd96558426bfce 100644
(file)
--- 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
# Extract URL, uploader and title from webpage
self.report_extraction(video_id)
video_url = None
- mobj = re.search(r'(?m)&
media
URL=([^&]+)', webpage)
+ mobj = re.search(r'(?m)&
(?:media|video)
URL=([^&]+)', webpage)
if mobj is not None:
mediaURL = compat_urllib_parse_unquote(mobj.group(1))
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)
# Extract gdaKey if available
mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
@@
-229,7
+229,7
@@
class MetacafeIE(InfoExtractor):
age_limit = (
18
age_limit = (
18
- if re.search(r'
"contentRating":
"restricted"', webpage)
+ if re.search(r'
(?:"contentRating":|"rating",)
"restricted"', webpage)
else 0)
if isinstance(video_url, list):
else 0)
if isinstance(video_url, list):