mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-09 12:33:58 +03:00
Update yt_dlp/extractor/youtube/_base.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
@@ -455,8 +455,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
||||
def _initialize_consent(self):
|
||||
if self._has_auth_cookies:
|
||||
return
|
||||
cookies = self._youtube_cookies
|
||||
socs = cookies.get('SOCS')
|
||||
socs = self._youtube_cookies.get('SOCS')
|
||||
if socs and not socs.value.startswith('CAA'): # not consented
|
||||
return
|
||||
self._set_cookie('.youtube.com', 'SOCS', 'CAI', secure=True) # accept all (required for mixes)
|
||||
|
||||
Reference in New Issue
Block a user