Clear restrictions when overriding auto
This commit is contained in:
parent
f36a2d9bec
commit
46d446718f
@ -206,6 +206,12 @@ public class Entrypoint : IServerEntryPoint
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Unless user initiated, this is likely an overlap
|
||||||
|
if (Entrypoint.AutomaticTaskState == TaskState.Running)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
StartTimer();
|
StartTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,6 +347,7 @@ public class Entrypoint : IServerEntryPoint
|
|||||||
{
|
{
|
||||||
if (!dispose)
|
if (!dispose)
|
||||||
{
|
{
|
||||||
|
Plugin.Instance!.Configuration.PathRestrictions.Clear();
|
||||||
_libraryManager.ItemAdded -= OnItemAdded;
|
_libraryManager.ItemAdded -= OnItemAdded;
|
||||||
_libraryManager.ItemUpdated -= OnItemModified;
|
_libraryManager.ItemUpdated -= OnItemModified;
|
||||||
_taskManager.TaskCompleted -= OnLibraryRefresh;
|
_taskManager.TaskCompleted -= OnLibraryRefresh;
|
||||||
|
@ -86,6 +86,8 @@ public class DetectCreditsTask : IScheduledTask
|
|||||||
|
|
||||||
_logger.LogInformation("Scheduled Task is starting");
|
_logger.LogInformation("Scheduled Task is starting");
|
||||||
|
|
||||||
|
Plugin.Instance!.Configuration.PathRestrictions.Clear();
|
||||||
|
|
||||||
var baseCreditAnalyzer = new BaseItemAnalyzerTask(
|
var baseCreditAnalyzer = new BaseItemAnalyzerTask(
|
||||||
AnalysisMode.Credits,
|
AnalysisMode.Credits,
|
||||||
_loggerFactory.CreateLogger<DetectCreditsTask>(),
|
_loggerFactory.CreateLogger<DetectCreditsTask>(),
|
||||||
|
@ -85,6 +85,8 @@ public class DetectIntrosCreditsTask : IScheduledTask
|
|||||||
|
|
||||||
_logger.LogInformation("Scheduled Task is starting");
|
_logger.LogInformation("Scheduled Task is starting");
|
||||||
|
|
||||||
|
Plugin.Instance!.Configuration.PathRestrictions.Clear();
|
||||||
|
|
||||||
var baseIntroAnalyzer = new BaseItemAnalyzerTask(
|
var baseIntroAnalyzer = new BaseItemAnalyzerTask(
|
||||||
AnalysisMode.Introduction,
|
AnalysisMode.Introduction,
|
||||||
_loggerFactory.CreateLogger<DetectIntrosCreditsTask>(),
|
_loggerFactory.CreateLogger<DetectIntrosCreditsTask>(),
|
||||||
|
@ -85,6 +85,8 @@ public class DetectIntrosTask : IScheduledTask
|
|||||||
|
|
||||||
_logger.LogInformation("Scheduled Task is starting");
|
_logger.LogInformation("Scheduled Task is starting");
|
||||||
|
|
||||||
|
Plugin.Instance!.Configuration.PathRestrictions.Clear();
|
||||||
|
|
||||||
var baseIntroAnalyzer = new BaseItemAnalyzerTask(
|
var baseIntroAnalyzer = new BaseItemAnalyzerTask(
|
||||||
AnalysisMode.Introduction,
|
AnalysisMode.Introduction,
|
||||||
_loggerFactory.CreateLogger<DetectIntrosTask>(),
|
_loggerFactory.CreateLogger<DetectIntrosTask>(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user