浏览代码

[metacafe] Fix age limit extraction

Jaime Marquínez Ferrándiz 9 年之前
父节点
当前提交
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 = (
         age_limit = (
             18
             18
-            if re.search(r'"contentRating":"restricted"', webpage)
+            if re.search(r'(?:"contentRating":|"rating",)"restricted"', webpage)
             else 0)
             else 0)
 
 
         if isinstance(video_url, list):
         if isinstance(video_url, list):