Only shared should split progress bar

This commit is contained in:
TwistedUmbrellaX 2024-04-14 10:49:28 -04:00
parent de60fd236f
commit 75688772b1
2 changed files with 11 additions and 4 deletions

View File

@ -300,8 +300,8 @@ public class Entrypoint : IServerEntryPoint
} }
} }
Plugin.Instance!.AnalyzerTaskIsRunning = false;
Plugin.Instance!.Configuration.PathRestrictions.Clear(); Plugin.Instance!.Configuration.PathRestrictions.Clear();
Plugin.Instance!.AnalyzerTaskIsRunning = false;
_autoTaskCompletEvent.Set(); _autoTaskCompletEvent.Set();
// New item detected, start timer again // New item detected, start timer again

View File

@ -146,13 +146,20 @@ public class BaseItemAnalyzerTask
EdlManager.UpdateEDLFiles(episodes); EdlManager.UpdateEDLFiles(episodes);
} }
if (_analysisMode == AnalysisMode.Introduction) if (_logger is ILogger<DetectIntrosCreditsTask>)
{ {
progress.Report(((totalProcessed * 100) / totalQueued) / 2); if (_analysisMode == AnalysisMode.Introduction)
{
progress.Report(((totalProcessed * 100) / totalQueued) / 2);
}
else
{
progress.Report((((totalProcessed * 100) / totalQueued) / 2) + 50);
}
} }
else else
{ {
progress.Report((((totalProcessed * 100) / totalQueued) / 2) + 50); progress.Report((totalProcessed * 100) / totalQueued);
} }
}); });