From 737e510a6c7723e91eb4128ee9eb855e4e0df608 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Sun, 28 Dec 2025 18:53:25 +0100 Subject: [PATCH] feat: add enable/disable toggle for the plugin and update configuration handling --- .../Configuration/PluginConfiguration.cs | 6 ++ .../Configuration/configPage.html | 9 ++ Jellyfin.Plugin.Seasonals/ScriptInjector.cs | 11 ++- Jellyfin.Plugin.Seasonals/SeasonalsPlugin.cs | 98 ++++++++++++++++++- manifest.json | 6 +- 5 files changed, 118 insertions(+), 12 deletions(-) diff --git a/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs index d2d6657..a789083 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs @@ -12,6 +12,7 @@ public class PluginConfiguration : BasePluginConfiguration /// public PluginConfiguration() { + IsEnabled = true; SelectedSeason = "none"; AutomateSeasonSelection = true; @@ -27,6 +28,11 @@ public class PluginConfiguration : BasePluginConfiguration Easter = new EasterOptions(); } + /// + /// Gets or sets a value indicating whether the plugin is enabled. + /// + public bool IsEnabled { get; set; } + /// /// Gets or sets the selected season. /// diff --git a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html index e960aa7..b5ecd24 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html +++ b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html @@ -24,6 +24,13 @@

+
+ +
Enable or disable the entire plugin functionality.
+