Fix authentication when not supporting cookies

This commit is contained in:
Joakim Holm 2023-05-22 11:02:05 +02:00
parent c53ec27dc8
commit d46a4fe88b

View File

@ -76,7 +76,7 @@ async def authenticate(source: Source, config: Config, options):
username, password, library = get_login(source, config, options) username, password, library = get_login(source, config, options)
await source.login(username, password, library=library) await source.login(username, password, library=library)
source.authenticated = True source.authenticated = True
if source.supports_cookies: elif source.supports_cookies:
cookie_file = get_cookie_file(options) cookie_file = get_cookie_file(options)
if cookie_file: if cookie_file:
source.load_cookies(cookie_file) source.load_cookies(cookie_file)