Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Jan 3, 2024
1 parent 7a127cd commit 3093eb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3093eb7

Please sign in to comment.