mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-11 11:24:01 +00:00
Update yt_dlp/extractor/youtube/_base.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
f69ec68096
commit
9f97ee4309
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user