mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
fix(title-cache): key a cookie-only login by its cookie file path
This commit is contained in:
@@ -111,6 +111,7 @@ class TitleSource(metaclass=ABCMeta):
|
||||
log: logging.Logger
|
||||
session: requests.Session
|
||||
credential: Credential | None = None
|
||||
cookie_file: str | None = None
|
||||
current_region: str | None = None
|
||||
title_cache: TitleCacher | None = None
|
||||
|
||||
@@ -140,7 +141,8 @@ class TitleSource(metaclass=ABCMeta):
|
||||
title_id = self.title_id
|
||||
else:
|
||||
title_id = None
|
||||
return CacheIdentity(self.title_cache, title_id, self.current_region, get_account_hash(self.credential))
|
||||
account = get_account_hash(self.credential, self.cookie_file)
|
||||
return CacheIdentity(self.title_cache, title_id, self.current_region, account)
|
||||
|
||||
@abstractmethod
|
||||
def authenticate(self, cookies: CookieJar | None = None, credential: Credential | None = None) -> None:
|
||||
|
||||
Reference in New Issue
Block a user