[metacafe] Fix age limit extraction
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 5 Dec 2015 15:12:50 +0000 (16:12 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 5 Dec 2015 15:12:50 +0000 (16:12 +0100)
youtube_dl/extractor/metacafe.py

index 5b0b4260861c4e30104d238e557b88a3e1aa952b..67d6271e1ad107aceddaa2c8b4bd96558426bfce 100644 (file)
@@ -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):