From 2e67a4fb5ea76fdaecd2b45ebc9bed0c6515a341 Mon Sep 17 00:00:00 2001 From: rlauu <46294892+rlauu@users.noreply.github.com> Date: Sat, 30 Mar 2024 19:02:18 +0100 Subject: [PATCH] add options to disable scans of either intros or credits --- .../Configuration/PluginConfiguration.cs | 10 +++++ .../Configuration/configPage.html | 29 ++++++++++++- .../Entrypoint.cs | 43 ++++++++++++------- .../DetectIntrosAndCreditsTask.cs | 35 +++++++-------- 4 files changed, 84 insertions(+), 33 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs index 8ae83f1..b574521 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs @@ -27,6 +27,16 @@ public class PluginConfiguration : BasePluginConfiguration /// public string SelectedLibraries { get; set; } = string.Empty; + /// + /// Gets or sets a value indicating whether to scan for intros during a scheduled task. + /// + public bool DetectIntros { get; set; } = true; + + /// + /// Gets or sets a value indicating whether to scan for credits during a scheduled task. + /// + public bool DetectCredits { get; set; } = true; + /// /// Gets or sets a value indicating whether to analyze automatically, when new Items are added. /// diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index 3e9cfbe..70ae2ec 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -7,7 +7,7 @@
+ data-require="emby-input,emby-button,emby-select,emby-checkbox,emby-linkbutton">