소스 검색

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