Update yt_dlp/extractor/youtube/_base.py

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
coletdjnz
2025-04-27 09:51:42 +12:00
committed by GitHub
co-authored by bashonly
parent 4f412fb009
commit f69ec68096
+1 -2
View File
@@ -462,8 +462,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
self._set_cookie('.youtube.com', 'SOCS', 'CAI', secure=True) # accept all (required for mixes) self._set_cookie('.youtube.com', 'SOCS', 'CAI', secure=True) # accept all (required for mixes)
def _initialize_pref(self): def _initialize_pref(self):
cookies = self._youtube_cookies pref_cookie = self._youtube_cookies.get('PREF')
pref_cookie = cookies.get('PREF')
pref = {} pref = {}
if pref_cookie: if pref_cookie:
try: try: