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
parent 4f412fb009
commit f69ec68096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -462,8 +462,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
self._set_cookie('.youtube.com', 'SOCS', 'CAI', secure=True) # accept all (required for mixes)
def _initialize_pref(self):
cookies = self._youtube_cookies
pref_cookie = cookies.get('PREF')
pref_cookie = self._youtube_cookies.get('PREF')
pref = {}
if pref_cookie:
try: