From d35c337c28232b658ba884a21fed1efdc3919eda Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX <1173913+AbandonedCart@users.noreply.github.com> Date: Sun, 14 Apr 2024 01:13:43 -0400 Subject: [PATCH] Limit the scope of automatic scanning (#116) * Add temporary scope limit for auto * Fix a missing credits variable rename * Add some extra padding to notes * Only use path limits when filled in --- .../Configuration/PluginConfiguration.cs | 6 ++++++ .../Configuration/configPage.html | 9 +++++---- ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs | 6 ++++++ ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs | 8 ++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs index ae18155..43fd7b0 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using System.Diagnostics; using MediaBrowser.Model.Plugins; @@ -27,6 +28,11 @@ public class PluginConfiguration : BasePluginConfiguration /// public string SelectedLibraries { get; set; } = string.Empty; + /// + /// Gets a temporary limitation on file paths to be analyzed. Should be empty when automatic scan is idle. + /// + public IList PathRestrictions { get; } = new List(); + /// /// Gets or sets a value indicating whether to scan for intros during a scheduled task. /// diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index d1fe474..22b4039 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -46,8 +46,8 @@
If enabled, credits will be automatically analyzed for new media -
-
+
+
Note: Not selecting at least one automatic detection type will disable automatic scans. To configure the scheduled task, see scheduled tasks.
@@ -61,6 +61,7 @@
If checked, season 0 (specials / extras) will be included in analysis.
+
Note: Shows containing both a specials and extra folder will identify extras as season 0 and ignore specials, regardless of this setting.
@@ -147,10 +148,10 @@
-