Преглед на файлове

[metacafe] Fix age limit extraction

Jaime Marquínez Ferrándiz преди 10 години
родител
ревизия
77334ccb44
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      youtube_dl/extractor/metacafe.py

+ 1 - 1
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):