projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #7045 from remitamine/ign
[youtube-dl]
/
youtube_dl
/
extractor
/
metacafe.py
diff --git
a/youtube_dl/extractor/metacafe.py
b/youtube_dl/extractor/metacafe.py
index 5b0b4260861c4e30104d238e557b88a3e1aa952b..67d6271e1ad107aceddaa2c8b4bd96558426bfce 100644
(file)
--- a/
youtube_dl/extractor/metacafe.py
+++ b/
youtube_dl/extractor/metacafe.py
@@
-229,7
+229,7
@@
class MetacafeIE(InfoExtractor):
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):