commit 2f2d50289c920d4b27cdd52f7ce85e5bb5375e40
parent 161722ebda2198941f30a034412adf9fd0348d5d
Author: Ali Sherief <alihsherief@linuxmail.org>
Date:   Sat, 31 Oct 2020 04:08:20 +0200

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

Co-authored-by: Dominika <sokolov.dominika@gmail.com>
Diffstat:
Myoutube_dl/extractor/youtube.py | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -579,6 +579,22 @@ class YoutubeIE(YoutubeBaseInfoExtractor): } }, { + '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)', 'info_dict': {