Update yt_dlp/cookies.py

Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
This commit is contained in:
Stefan Lobbenmeier 2024-04-20 18:52:23 +02:00 committed by GitHub
parent 4f3ad96f2c
commit bf4ac4df74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -347,9 +347,7 @@ def _process_chrome_cookie(decryptor, host_key, name, value, encrypted_value, pa
if value is None:
return is_encrypted, None
if has_expires == 1:
expires_utc = expires_utc
else:
if not has_expires:
expires_utc = None
return is_encrypted, http.cookiejar.Cookie(