0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-16 01:25:06 +00: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 @@ 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):