From 462a2beea18060ff85e9d223abeb64a8a1648eb0 Mon Sep 17 00:00:00 2001 From: Thomas Gander Date: Mon, 16 Feb 2026 16:08:12 -0700 Subject: [PATCH] Moved styles to a global.css stylesheet. Also added basic validation with a transition --- Jellyfin.Plugin.MediaCleaner/Configuration.cs | 18 ++--- .../Pages/configuration.html | 51 +++++++++----- .../Pages/configuration.js | 69 ++++++++++++++++--- .../Pages/{home.css => global.css} | 19 +++++ Jellyfin.Plugin.MediaCleaner/Pages/home.html | 2 +- Jellyfin.Plugin.MediaCleaner/Plugin.cs | 4 +- 6 files changed, 119 insertions(+), 44 deletions(-) rename Jellyfin.Plugin.MediaCleaner/Pages/{home.css => global.css} (72%) diff --git a/Jellyfin.Plugin.MediaCleaner/Configuration.cs b/Jellyfin.Plugin.MediaCleaner/Configuration.cs index dd7dadb..e32c0b4 100644 --- a/Jellyfin.Plugin.MediaCleaner/Configuration.cs +++ b/Jellyfin.Plugin.MediaCleaner/Configuration.cs @@ -11,14 +11,9 @@ namespace Jellyfin.Plugin.MediaCleaner; public class Configuration : BasePluginConfiguration { /// - /// Gets or sets the http address for your Radarr instance. + /// Gets or sets the http and port address for your Radarr instance. /// - public string RadarrHTTPAddress { get; set; } = string.Empty; - - /// - /// Gets or sets the port for your Radarr instance. - /// - public string RadarrPort { get; set; } = string.Empty; + public string RadarrAddress { get; set; } = string.Empty; /// /// Gets or sets the api for your Radarr instance. @@ -26,14 +21,9 @@ public class Configuration : BasePluginConfiguration public string RadarrAPIKey { get; set; } = string.Empty; /// - /// Gets or sets the http address for your Sonarr instance. + /// Gets or sets the http and port address for your Sonarr instance. /// - public string SonarrHTTPAddress { get; set; } = string.Empty; - - /// - /// Gets or sets the port for your Sonarr instance. - /// - public string SonarrPort { get; set; } = string.Empty; + public string SonarrAddress { get; set; } = string.Empty; /// /// Gets or sets the api for your Sonarr instance. diff --git a/Jellyfin.Plugin.MediaCleaner/Pages/configuration.html b/Jellyfin.Plugin.MediaCleaner/Pages/configuration.html index 335b48e..7100e76 100644 --- a/Jellyfin.Plugin.MediaCleaner/Pages/configuration.html +++ b/Jellyfin.Plugin.MediaCleaner/Pages/configuration.html @@ -1,49 +1,62 @@
+

Media Cleaner Configuration

-
- - -
The http address of your radarr instance.
-
-
- - -
The port of your radarr instance.
-
- +
The api key used by your radarr instance
+
- - -
The http address of your sonarr instance.
+ + +
The address and port of your radarr instance.
+
- - -
The port of your sonarr instance.
+
+ +
- +
The api key used by your sonarr instance
+ +
+ + +
The address and port of your sonarr instance.
+
+ +
+ +
+ +
- +
How many days to wait before marking files as stale
+
+
diff --git a/Jellyfin.Plugin.MediaCleaner/Plugin.cs b/Jellyfin.Plugin.MediaCleaner/Plugin.cs index 4ce13d4..cd4bc5c 100644 --- a/Jellyfin.Plugin.MediaCleaner/Plugin.cs +++ b/Jellyfin.Plugin.MediaCleaner/Plugin.cs @@ -63,8 +63,8 @@ public class Plugin : BasePlugin, IHasWebPages }, new PluginPageInfo { - Name = "home.css", - EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Pages.home.css", GetType().Namespace), + Name = "global.css", + EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Pages.global.css", GetType().Namespace), } ]; }