Only shared should split progress bar
This commit is contained in:
parent
de60fd236f
commit
75688772b1
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user