Clear restrictions when overriding auto
This commit is contained in:
parent
141156dad7
commit
a07111d5e1
@ -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();
|
||||
|
@ -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>(),
|
||||
|
@ -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>(),
|
||||
|
@ -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>(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user