From e9259dd72d2f7347232db3ffa438605cdf42ca3a Mon Sep 17 00:00:00 2001 From: Tom Niget Date: Thu, 9 Nov 2023 00:00:09 +0100 Subject: [PATCH] fix: disable auto-reload since it is not needed and only harms perf --- Contents/Code/plex_api_helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Contents/Code/plex_api_helper.py b/Contents/Code/plex_api_helper.py index 1d905b7d..77b046f3 100644 --- a/Contents/Code/plex_api_helper.py +++ b/Contents/Code/plex_api_helper.py @@ -37,6 +37,9 @@ q = queue.Queue() +# disable auto-reload, because Themerr doesn't rely on it, so it will only slow down the app +# when accessing a missing field +os.environ["PLEXAPI_PLEXAPI_AUTORELOAD"] = "false" # the explicit IPv4 address is used because `localhost` can resolve to ::1, which `websocket` rejects plex_url = 'http://127.0.0.1:32400'