From 5ca3a38beb24bdcba6615da764e726c97e8cff28 Mon Sep 17 00:00:00 2001 From: Zvonimir Rudinski Date: Wed, 10 Dec 2025 03:55:17 +0100 Subject: [PATCH] dynamically set auth.ssl parameter --- changelog/0.1.1.md | 1 + jellyfin/api_client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/0.1.1.md b/changelog/0.1.1.md index c35a3dc..4db91e7 100644 --- a/changelog/0.1.1.md +++ b/changelog/0.1.1.md @@ -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` diff --git a/jellyfin/api_client.py b/jellyfin/api_client.py index 39caa32..f6dae89 100644 --- a/jellyfin/api_client.py +++ b/jellyfin/api_client.py @@ -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()