dynamically set auth.ssl parameter

This commit is contained in:
2025-12-10 03:55:17 +01:00
parent 090b96bb4e
commit 5ca3a38beb
2 changed files with 2 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ class JellyfinApiClient:
self.logger.info("Connecting to Jellyfin server...")
self.client = JellyfinClient()
self.client.config.app('jellydisc', '0.1.1', machine_name, unique_id)
self.client.config.data['auth.ssl'] = True
self.client.config.data['auth.ssl'] = settings.jellyfin_server_url.startswith('https://')
self.last_auth_time = None
self.authenticate()