From a718ef84c8084e122086783cbeb423abed51b86d Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 16 Feb 2021 03:20:06 +0530 Subject: [PATCH] [youtube] Fix for new accounts Cookies for some new accounts doesn't work with age-gated videos without `has_verified=1` --- youtube_dlc/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py index 7f199ad88..067b7f382 100644 --- a/youtube_dlc/extractor/youtube.py +++ b/youtube_dlc/extractor/youtube.py @@ -1414,7 +1414,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): url, smuggled_data = unsmuggle_url(url, {}) video_id = self._match_id(url) base_url = self.http_scheme() + '//www.youtube.com/' - webpage_url = base_url + 'watch?v=' + video_id + webpage_url = base_url + 'watch?v=' + video_id + '&has_verified=1' webpage = self._download_webpage(webpage_url, video_id, fatal=False) player_response = None