From 5e10d546fd9ec782a04a8af3ed5fcbd5be72f7d5 Mon Sep 17 00:00:00 2001 From: "Mikal S." <7761729+revam@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:54:08 +0200 Subject: [PATCH] fix: always re-evaluate libraries after a library scan or stalled event --- Shokofin/Configuration/MediaFolderConfigurationService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shokofin/Configuration/MediaFolderConfigurationService.cs b/Shokofin/Configuration/MediaFolderConfigurationService.cs index 6b122413..fe902fe6 100644 --- a/Shokofin/Configuration/MediaFolderConfigurationService.cs +++ b/Shokofin/Configuration/MediaFolderConfigurationService.cs @@ -129,10 +129,11 @@ private void OnUsageTrackerStalled(object? sender, EventArgs eventArgs) private void EditLibraries(bool shouldScheduleLibraryScan) { lock (LockObj) { + ShouldGenerateAllConfigurations = true; + if (LibraryEdits.Count is 0) return; - ShouldGenerateAllConfigurations = true; var libraryEdits = LibraryEdits.ToList(); LibraryEdits.Clear(); foreach (var (libraryId, (libraryName, add, remove)) in libraryEdits) {