Update BaseItemAnalyzerTask.cs

This commit is contained in:
TwistedUmbrellaX 2024-04-23 18:26:31 -04:00 committed by GitHub
parent c106811e8e
commit 85ea6de26c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,13 @@ public class BaseItemAnalyzerTask
if (totalRemaining >= queue.Count * modeCount) if (totalRemaining >= queue.Count * modeCount)
{ {
// TODO: Handle items being added dynamically totalQueued = 0;
foreach (var kvp in Plugin.Instance!.QueuedMediaItems)
{
totalQueued += kvp.Value.Count;
}
totalQueued *= _analysisModes.Count;
} }
// Since the first run of the task can run for multiple hours, ensure that none // Since the first run of the task can run for multiple hours, ensure that none