1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-07-24 08:13:25 +02:00

[metacafe] Fix age limit extraction

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-12-05 16:12:50 +01:00
parent 796db21295
commit 77334ccb44

View File

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