[cookies] set proper 'expires' value for Chrome session cookies

https://github.com/yt-dlp/yt-dlp/pull/9747
pull/5591/head
Mike Fährmann 4 months ago
parent f178839fc2
commit 90b3741643
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -146,7 +146,8 @@ def load_cookies_chrome(cookiejar, browser_name, profile=None,
set_cookie(Cookie(
0, name, value, None, False,
domain, bool(domain), domain.startswith("."),
path, bool(path), secure, expires, False, None, None, {},
path, bool(path), secure, expires or None, False,
None, None, {},
))
if failed_cookies > 0:

Loading…
Cancel
Save