diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-16 03:20:06 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-16 03:20:06 +0530 |
commit | a718ef84c8084e122086783cbeb423abed51b86d (patch) | |
tree | bc66d783a2746e014dd08e51474640e1c677c1b5 | |
parent | 44f705d0017870a21a3bf3932ff077fe151d8785 (diff) | |
download | hypervideo-pre-a718ef84c8084e122086783cbeb423abed51b86d.tar.lz hypervideo-pre-a718ef84c8084e122086783cbeb423abed51b86d.tar.xz hypervideo-pre-a718ef84c8084e122086783cbeb423abed51b86d.zip |
[youtube] Fix for new accounts
Cookies for some new accounts doesn't work with age-gated videos without `has_verified=1`
-rw-r--r-- | youtube_dlc/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |