Clear restrictions when overriding auto

This commit is contained in:
TwistedUmbrellaX 2024-04-16 14:01:48 -04:00
parent 141156dad7
commit a07111d5e1
4 changed files with 9 additions and 3 deletions

View File

@ -207,10 +207,10 @@ public class Entrypoint : IHostedService, IDisposable
return;
}
if (Plugin.Instance!.AnalyzerTaskIsRunning && AutomaticTaskState == TaskState.Running)
// Unless user initiated, this is likely an overlap
if (Entrypoint.AutomaticTaskState == TaskState.Running)
{
_logger.LogInformation("{0} Automatic Task will be superseded by library scan.", AutomaticTaskState);
CancelAutomaticTask();
return;
}
StartTimer();

View File

@ -86,6 +86,8 @@ public class DetectCreditsTask : IScheduledTask
_logger.LogInformation("Scheduled Task is starting");
Plugin.Instance!.Configuration.PathRestrictions.Clear();
var baseCreditAnalyzer = new BaseItemAnalyzerTask(
AnalysisMode.Credits,
_loggerFactory.CreateLogger<DetectCreditsTask>(),

View File

@ -85,6 +85,8 @@ public class DetectIntrosCreditsTask : IScheduledTask
_logger.LogInformation("Scheduled Task is starting");
Plugin.Instance!.Configuration.PathRestrictions.Clear();
var baseIntroAnalyzer = new BaseItemAnalyzerTask(
AnalysisMode.Introduction,
_loggerFactory.CreateLogger<DetectIntrosCreditsTask>(),

View File

@ -85,6 +85,8 @@ public class DetectIntrosTask : IScheduledTask
_logger.LogInformation("Scheduled Task is starting");
Plugin.Instance!.Configuration.PathRestrictions.Clear();
var baseIntroAnalyzer = new BaseItemAnalyzerTask(
AnalysisMode.Introduction,
_loggerFactory.CreateLogger<DetectIntrosTask>(),