From 29d1f0084271672bd102dca91b64c3a94245b31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 6 Jul 2022 11:53:44 +0300 Subject: [PATCH] Add plex.timeout configuration --- plextraktsync/config.default.yml | 3 +++ plextraktsync/plex_server.py | 1 + 2 files changed, 4 insertions(+) diff --git a/plextraktsync/config.default.yml b/plextraktsync/config.default.yml index 731b0b2209..cb86ae5e9d 100644 --- a/plextraktsync/config.default.yml +++ b/plextraktsync/config.default.yml @@ -8,6 +8,9 @@ excluded-libraries: config: dotenv_override: true +plex: + timeout: 30 + logging: append: true debug: false diff --git a/plextraktsync/plex_server.py b/plextraktsync/plex_server.py index 0a52fabe3e..601e86b0ad 100644 --- a/plextraktsync/plex_server.py +++ b/plextraktsync/plex_server.py @@ -29,6 +29,7 @@ def _get_plex_server(): server = None plexapi.X_PLEX_PLATFORM = PLEX_PLATFORM + plexapi.TIMEOUT = CONFIG["plex"]["timeout"] plexapi.BASE_HEADERS["X-Plex-Platform"] = plexapi.X_PLEX_PLATFORM session = factory.session()