mirror of
https://github.com/ytdl-org/ytdl-nightly.git
synced 2024-12-24 14:03:20 +01:00
[metacafe] Fix age limit extraction
This commit is contained in:
parent
796db21295
commit
77334ccb44
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user