Skip to content

Commit

Permalink
Update BaseItemAnalyzerTask.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Apr 23, 2024
1 parent c106811 commit 85ea6de
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ public class BaseItemAnalyzerTask
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
Expand Down

0 comments on commit 85ea6de

Please sign in to comment.