logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 28bab774a0df2c80b689c277390da8617131db35
parent 8f493de9fb3a7f123bdf887163efa06ce9d6b051
Author: Remita Amine <remitamine@gmail.com>
Date:   Tue, 30 Mar 2021 21:44:41 +0100

[youtube] imporve age-restricted video extraction(#28578)

Diffstat:

Myoutube_dl/extractor/youtube.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: