[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

View File

@ -1414,7 +1414,7 @@ def _real_extract(self, url):
url, smuggled_data = unsmuggle_url(url, {}) url, smuggled_data = unsmuggle_url(url, {})
video_id = self._match_id(url) video_id = self._match_id(url)
base_url = self.http_scheme() + '//www.youtube.com/' 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) webpage = self._download_webpage(webpage_url, video_id, fatal=False)
player_response = None player_response = None