Skip to content

Commit

Permalink
fix progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rlauuzo authored and AbandonedCart committed Apr 19, 2024
1 parent 4556524 commit 33c2cce
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public class BaseItemAnalyzerTask
totalQueued += kvp.Value.Count;
}

totalQueued *= _analysisModes.Count;

if (totalQueued == 0)
{
throw new FingerprintException(
Expand Down Expand Up @@ -131,6 +133,8 @@ public class BaseItemAnalyzerTask
Interlocked.Add(ref totalProcessed, analyzed);
writeEdl = analyzed > 0 || Plugin.Instance!.Configuration.RegenerateEdlFiles;
progress.Report((totalProcessed * 100) / totalQueued);
}
}
catch (FingerprintException ex)
Expand All @@ -146,8 +150,6 @@ public class BaseItemAnalyzerTask
{
EdlManager.UpdateEDLFiles(episodes);
}
progress.Report((totalProcessed * 100) / totalQueued);
});

if (Plugin.Instance!.Configuration.RegenerateEdlFiles)
Expand Down

0 comments on commit 33c2cce

Please sign in to comment.