From 3acf041087b568298847bb27e231d01eb0bda89c Mon Sep 17 00:00:00 2001 From: rlauu <46294892+rlauu@users.noreply.github.com> Date: Sat, 20 Apr 2024 14:53:15 +0200 Subject: [PATCH] Update BaseItemAnalyzerTask.cs --- .../ScheduledTasks/BaseItemAnalyzerTask.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs index 866cf98..aece433 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs @@ -114,13 +114,13 @@ public class BaseItemAnalyzerTask var first = episodes[0]; var requiredModeCount = requiredModes.Count; - if (requiredModeCount == 0) + if (requiredModeCount == 0) { _logger.LogDebug( "All episodes in {Name} season {Season} have already been analyzed", first.SeriesName, first.SeasonNumber); - + Interlocked.Add(ref totalProcessed, (episodeCount * modeCount)); // Update totalProcessed directly progress.Report((totalProcessed * 100) / totalQueued);