[youtube] Fix for new accounts

Cookies for some new accounts doesn't work with age-gated videos without `has_verified=1`
This commit is contained in:
pukkandan 2021-02-16 03:20:06 +05:30
parent 44f705d001
commit a718ef84c8
1 changed files with 1 additions and 1 deletions

View File

@ -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