Browse Source

[metacafe] Fix age limit extraction

master
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
77334ccb44
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/metacafe.py

2
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):

Loading…
Cancel
Save