From 9fe1c66a31d02a2c2c10cb005baa272f09b9f7ee Mon Sep 17 00:00:00 2001 From: bart Date: Mon, 2 Nov 2026 22:09:20 +0100 Subject: [PATCH] fix(jellyfin): gracefully skip connection when password is empty to avoid log spam --- src/jellyfin/client.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jellyfin/client.py b/src/jellyfin/client.py index c86a80f..f343941 100644 --- a/src/jellyfin/client.py +++ b/src/jellyfin/client.py @@ -50,7 +50,13 @@ class JellyfinClient: async def start(self) -> None: """Start the Jellyfin client connection loop.""" if not self.config.server_url or not self.config.username: - logger.info("Jellyfin credentials not configured; skipping Jellyfin server connection") + logger.info("Jellyfin server URL or username not configured; skipping Jellyfin server connection") + return + + if not self.config.password and not self.config.token: + logger.info( + "Jellyfin password is empty in config.yaml. Kodi RPC (Yatse) and YouTube sharing are fully active. Set your password in config.yaml to also enable Jellyfin casting." + ) return self._running = True @@ -58,6 +64,7 @@ class JellyfinClient: self._ws_task = asyncio.create_task(self._connection_manager()) self._report_task = asyncio.create_task(self._progress_reporter()) + async def _connection_manager(self) -> None: """Keeps the connection and WebSocket session alive with auto-reconnect.""" while self._running: