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.