From: Jaime Marquínez Ferrándiz Date: Sat, 5 Dec 2015 15:12:50 +0000 (+0100) Subject: [metacafe] Fix age limit extraction X-Git-Tag: 2015.12.06~14 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=77334ccb44c06ea2d9308b334aecc612c2f3240e;p=youtube-dl.git [metacafe] Fix age limit extraction --- diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py index 5b0b426086..67d6271e1a 100644 --- 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):