From 4c1bf2d0552af8e19bf1a3fc997b4d11e2d0a278 Mon Sep 17 00:00:00 2001 From: "antonin.bruzard" Date: Sun, 1 Oct 2023 16:01:55 +0200 Subject: [PATCH] bugfix (mutliple servers): attempting to cache the Plex Content in server --- src/Ombi.Schedule/Jobs/Plex/PlexContentSync.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ombi.Schedule/Jobs/Plex/PlexContentSync.cs b/src/Ombi.Schedule/Jobs/Plex/PlexContentSync.cs index eb31a5c8f..365110d9c 100644 --- a/src/Ombi.Schedule/Jobs/Plex/PlexContentSync.cs +++ b/src/Ombi.Schedule/Jobs/Plex/PlexContentSync.cs @@ -278,6 +278,10 @@ private async Task ProcessServer(PlexServers servers, bool rec await Repo.AddRange(contentToAdd); foreach (var c in contentToAdd) { + if (contentProcessed.ContainsKey(c.Id)) { + continue; + } + contentProcessed.Add(c.Id, c.Key); } }