mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 15:00:46 +00:00
[metacafe] Fix age limit extraction
This commit is contained in:
parent
796db21295
commit
77334ccb44
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ def _real_extract(self, url):
|
|||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue