Skip to content

Commit

Permalink
Remove refs to AnalyzerTaskIsRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Apr 16, 2024
1 parent 34c4e6e commit f36a2d9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private void OnItemAdded(object? sender, ItemChangeEventArgs itemChangeEventArgs
return;
}

if (Plugin.Instance!.AnalyzerTaskIsRunning)
if (Entrypoint.AutomaticTaskState == TaskState.Running)
{
_queueManager.QueueEpisode(episode);
}
Expand Down Expand Up @@ -170,7 +170,7 @@ private void OnItemModified(object? sender, ItemChangeEventArgs itemChangeEventA
return;
}

if (Plugin.Instance!.AnalyzerTaskIsRunning)
if (Entrypoint.AutomaticTaskState == TaskState.Running)
{
_queueManager.QueueEpisode(episode);
}
Expand Down Expand Up @@ -206,12 +206,6 @@ private void OnLibraryRefresh(object? sender, TaskCompletionEventArgs eventArgs)
return;
}

if (Plugin.Instance!.AnalyzerTaskIsRunning && AutomaticTaskState == TaskState.Running)
{
_logger.LogInformation("{0} Automatic Task will be superseded by library scan.", AutomaticTaskState);
CancelAutomaticTask();
}

StartTimer();
}

Expand Down

0 comments on commit f36a2d9

Please sign in to comment.