From: Remita Amine Date: Tue, 30 Mar 2021 20:44:41 +0000 (+0100) Subject: [youtube] imporve age-restricted video extraction(#28578) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=28bab774a0df2c80b689c277390da8617131db35;p=youtube-dl [youtube] imporve age-restricted video extraction(#28578) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index e48c5a7d2..6a92938a5 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1432,7 +1432,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): base_url = self.http_scheme() + '//www.youtube.com/' webpage_url = base_url + 'watch?v=' + video_id webpage = self._download_webpage( - webpage_url + '&bpctr=9999999999', video_id, fatal=False) + webpage_url + '&bpctr=9999999999&has_verified=1', video_id, fatal=False) player_response = None if webpage: