Clear restrictions when overriding auto
This commit is contained in:
parent
f36a2d9bec
commit
46d446718f
@ -206,6 +206,12 @@ public class Entrypoint : IServerEntryPoint
|
||||
return;
|
||||
}
|
||||
|
||||
// Unless user initiated, this is likely an overlap
|
||||
if (Entrypoint.AutomaticTaskState == TaskState.Running)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
StartTimer();
|
||||
}
|
||||
|
||||
@ -341,6 +347,7 @@ public class Entrypoint : IServerEntryPoint
|
||||
{
|
||||
if (!dispose)
|
||||
{
|
||||
Plugin.Instance!.Configuration.PathRestrictions.Clear();
|
||||
_libraryManager.ItemAdded -= OnItemAdded;
|
||||
_libraryManager.ItemUpdated -= OnItemModified;
|
||||
_taskManager.TaskCompleted -= OnLibraryRefresh;
|
||||
|
@ -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