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

@@ -6,3 +6,4 @@
- Added a formatting script (`scripts/format.sh`) that uses `autopep8` to automatically format the codebase for better readability and consistency
- Removed caching of last fetched items to ensure the most up-to-date information is always displayed in Discord Rich Presence
- Handle paused state correctly by checking the `PlayState` property from Jellyfin and updating Discord Rich Presence accordingly
- Set the `auth.ssl` configuration option in Jellyfin Client dynamically based on the `jellyfin_server_url`

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()