code cleanup

This commit is contained in:
Kilian von Pflugk 2024-04-20 12:29:40 +02:00
parent 169e08047c
commit 451fc8a511
4 changed files with 14 additions and 21 deletions

View File

@ -1,12 +1,7 @@
namespace ConfusedPolarBear.Plugin.IntroSkipper; namespace ConfusedPolarBear.Plugin.IntroSkipper;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Globalization;
using System.Linq;
using System.Threading; using System.Threading;
using MediaBrowser.Model.Entities;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
/// <summary> /// <summary>

View File

@ -1,10 +1,8 @@
using System; using System;
using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Tasks; using MediaBrowser.Model.Tasks;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
@ -208,7 +206,7 @@ public class Entrypoint : IHostedService, IDisposable
} }
// Unless user initiated, this is likely an overlap // Unless user initiated, this is likely an overlap
if (AutomaticTaskState == TaskState.Running) if (Entrypoint.AutomaticTaskState == TaskState.Running)
{ {
return; return;
} }
@ -221,7 +219,7 @@ public class Entrypoint : IHostedService, IDisposable
/// </summary> /// </summary>
private void StartTimer() private void StartTimer()
{ {
if (AutomaticTaskState == TaskState.Running) if (Entrypoint.AutomaticTaskState == TaskState.Running)
{ {
_analyzeAgain = true; // Items added during a scan will be included later. _analyzeAgain = true; // Items added during a scan will be included later.
} }