From 3093eb7daca362a86ac5df7a9152bd1f89feeac6 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Tue, 2 Jan 2024 17:48:11 -0700 Subject: [PATCH] fix --- src/plex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plex.py b/src/plex.py index 86de1eb..d5b4ab0 100644 --- a/src/plex.py +++ b/src/plex.py @@ -143,7 +143,9 @@ def get_user_library_watched(user, user_plex, library): in library_videos.search(unwatched=False) + library_videos.search(inProgress=True) ] - for show_guids, episode_guids in future_thread_executor(args, threads=4): + for show_guids, episode_guids in future_thread_executor( + args, workers=min(os.cpu_count(), 4) + ): if show_guids and episode_guids: watched[show_guids] = episode_guids logger(