fix(jellyfin): gracefully skip connection when password is empty to avoid log spam
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user