[youtube] Re-add age protection test (#14)

Co-authored-by: Dominika <sokolov.dominika@gmail.com>
pull/18/head
Ali Sherief 4 years ago committed by GitHub
parent 161722ebda
commit 2f2d50289c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -578,6 +578,22 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'end_time': 9,
}
},
{
'url': 'https://www.youtube.com/watch?v=PA4gbtKWNAI',
'note': 'Test video with age protection',
'info_dict': {
'id': 'PA4gbtKWNAI',
'ext': 'mp4',
'upload_date': '20201028',
'title': 'Big Buck Bunny (TEST) (Age-restricted)',
'description': 'An age restricted test video for youtube-dl',
'duration': 635,
'uploader': 'Ali Sherief',
'uploader_id': 'UCi1TsEkfcMaYSadGms3UnqA',
'uploader_url': r're:https?://(?:www\.)?youtube\.com/channel/UCi1TsEkfcMaYSadGms3UnqA',
'age_limit': 18,
}
},
{
'url': '//www.YouTube.com/watch?v=yZIXLfi8CZQ',
'note': 'Embed-only video (#1746)',

Loading…
Cancel
Save