From 33b95683bda424ffed4f655553d8f2afb410607c Mon Sep 17 00:00:00 2001 From: Nirvana Date: Tue, 17 Feb 2026 19:50:53 +0100 Subject: [PATCH] Add discovery --- lib/streaming_providers/providers/discovery/auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/streaming_providers/providers/discovery/auth.py b/lib/streaming_providers/providers/discovery/auth.py index 3dcd486..96b004f 100644 --- a/lib/streaming_providers/providers/discovery/auth.py +++ b/lib/streaming_providers/providers/discovery/auth.py @@ -264,6 +264,11 @@ class DiscoveryAuthenticator(BaseAuthenticator): enable_kodi_integration=True, ) + if not self.credentials: + self.credentials = self._load_credentials_from_manager() + if self.credentials: + logger.info(f"Loaded stored credentials for discovery ({country})") + # NOTE: _discover_endpoints() is NOT called here. # Bootstrap requires an authenticated session to return correct routing, # so it is called at the end of _perform_anonymous_auth /