mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-22 09:05:41 +07:00
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:
@@ -1495,7 +1495,8 @@ def _real_extract(self, url):
|
||||
'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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user