mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-18 15:15:42 +07:00
[metacafe] Fix age limit extraction
This commit is contained in:
@@ -229,7 +229,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
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):
|
||||||
|
|||||||
Reference in New Issue
Block a user