code cleanup
This commit is contained in:
parent
169e08047c
commit
451fc8a511
@ -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>
|
||||||
|
@ -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.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user