dynamically set auth.ssl parameter
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user