From 8ef556d3c256cc7afe5986f75999a598b70d1b64 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sat, 26 Apr 2025 12:21:59 +1200 Subject: [PATCH] Update yt_dlp/extractor/youtube/_base.py Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/youtube/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube/_base.py b/yt_dlp/extractor/youtube/_base.py index 417c3ccbbe..be22af9fb3 100644 --- a/yt_dlp/extractor/youtube/_base.py +++ b/yt_dlp/extractor/youtube/_base.py @@ -611,7 +611,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): # YouTube doesn't appear to clear 3PSAPISID when rotating cookies (as of 2025-04-26) # But LOGIN_INFO is cleared and should exist if logged in has_login_info = 'LOGIN_INFO' in self._youtube_cookies - return has_login_info and (yt_sapisid or yt_1psapisid or yt_3psapisid) + return bool(has_login_info and (yt_sapisid or yt_1psapisid or yt_3psapisid)) def _request_webpage(self, *args, **kwargs): response = super()._request_webpage(*args, **kwargs)