Allow users to specify an age limit (fixes #1545)
[youtube-dl] / youtube_dl / extractor / youtube.py
index 1101011ea38aedc4d2a46aecb3c357861e441929..9bcd035bde1fabe9c74dae03173a7cb0684486ca 100644 (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