From 2c947ca9c57e042160d47edf8fce0f0f5e605578 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Fri, 20 Feb 2026 19:17:38 +0100 Subject: [PATCH] Add discovery --- lib/streaming_providers/providers/discovery/auth.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/streaming_providers/providers/discovery/auth.py b/lib/streaming_providers/providers/discovery/auth.py index 85358f3..e74e36a 100644 --- a/lib/streaming_providers/providers/discovery/auth.py +++ b/lib/streaming_providers/providers/discovery/auth.py @@ -267,6 +267,10 @@ class DiscoveryAuthenticator(BaseAuthenticator): # The credential manager returns bare UserPasswordCredentials; wrapping # here ensures DiscoveryUserCredentials is used consistently. promoted_credentials = self._promote_credentials(credentials) if credentials else None + logger.debug( + f"Discovery __init__: original={type(credentials).__name__}, " + f"promoted={type(promoted_credentials).__name__}" + ) # Call parent __init__ (BaseAuthenticator signature) super().__init__( @@ -278,6 +282,8 @@ class DiscoveryAuthenticator(BaseAuthenticator): enable_kodi_integration=True, ) + logger.debug(f"Discovery __init__ post-super: self.credentials={type(self.credentials).__name__}") + # If no credentials were provided at construction time, attempt to load # from storage. Promote here too — the credential manager always returns # bare base-class instances.