Allow users to specify an age limit (fixes #1545)

With these changes, users can now restrict what videos are downloaded by the intented audience, by specifying their age with --age-limit YEARS .
Add rudimentary support in youtube, pornotube, and youporn.
This commit is contained in:
Philipp Hagemeister 2013-10-06 06:06:30 +02:00
parent f4aac741d5
commit 8dbe9899a9
7 changed files with 81 additions and 3 deletions

View file

@ -1495,7 +1495,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
'description': video_description,
'player_url': player_url,
'subtitles': video_subtitles,
'duration': video_duration
'duration': video_duration,
'age_restriction': 18 if age_gate else 0,
})
return results