From ded3c3d43af3121b96eec1361d0c24e72b6a9239 Mon Sep 17 00:00:00 2001 From: rlauu <46294892+rlauu@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:58:16 +0100 Subject: [PATCH] analyze when item is added to the server (#96) --- .../Configuration/PluginConfiguration.cs | 5 + .../Configuration/configPage.html | 12 ++ .../Entrypoint.cs | 162 +++++++++++++++++- .../Plugin.cs | 5 + .../ScheduledTasks/DetectCreditsTask.cs | 41 +++++ .../ScheduledTasks/DetectIntroductionsTask.cs | 41 +++++ 6 files changed, 263 insertions(+), 3 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs index 06384eb..8ae83f1 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs @@ -27,6 +27,11 @@ public class PluginConfiguration : BasePluginConfiguration /// public string SelectedLibraries { get; set; } = string.Empty; + /// + /// Gets or sets a value indicating whether to analyze automatically, when new Items are added. + /// + public bool AutomaticAnalysis { get; set; } = false; + /// /// Gets or sets a value indicating whether to analyze season 0. /// diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index e44e1e1..3e9cfbe 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -27,6 +27,17 @@
Analysis +
+ + +
+ If checked, newly added items will be automatically analyzed. +
+
+