diff --git a/Jellyfin.Plugin.MediaCleaner/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.MediaCleaner/Configuration/PluginConfiguration.cs index 572175f..2138eb1 100644 --- a/Jellyfin.Plugin.MediaCleaner/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.MediaCleaner/Configuration/PluginConfiguration.cs @@ -17,11 +17,31 @@ public class PluginConfiguration : BasePluginConfiguration { } + /// + /// Gets or sets the http 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; + /// /// Gets or sets the api for your Radarr instance. /// public string RadarrAPIKey { get; set; } = string.Empty; + /// + /// Gets or sets the http 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; + /// /// Gets or sets the api for your Sonarr instance. /// diff --git a/Jellyfin.Plugin.MediaCleaner/Configuration/settings.html b/Jellyfin.Plugin.MediaCleaner/Configuration/settings.html index aa5229d..27aa260 100644 --- a/Jellyfin.Plugin.MediaCleaner/Configuration/settings.html +++ b/Jellyfin.Plugin.MediaCleaner/Configuration/settings.html @@ -9,11 +9,31 @@
+
+ + +
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 port of your sonarr instance.
+
@@ -74,7 +94,11 @@ // document.querySelector('#AnInteger').value = config.AnInteger; // document.querySelector('#TrueFalseSetting').checked = config.TrueFalseSetting; // document.querySelector('#AString').value = config.AString; + document.querySelector('#RadarrHTTPAddress').value = config.RadarrHTTPAddress; + document.querySelector('#RadarrPort').value = config.RadarrPort; document.querySelector('#RadarrAPIKey').value = config.RadarrAPIKey; + document.querySelector('#SonarrHTTPAddress').value = config.SonarrHTTPAddress; + document.querySelector('#SonarrPort').value = config.SonarrPort; document.querySelector('#SonarrAPIKey').value = config.SonarrAPIKey; document.querySelector('#StaleMediaCutoff').value = config.StaleMediaCutoff; document.querySelector('#DebugMode').checked = config.DebugMode; @@ -90,7 +114,11 @@ // config.AnInteger = document.querySelector('#AnInteger').value; // config.TrueFalseSetting = document.querySelector('#TrueFalseSetting').checked; // config.AString = document.querySelector('#AString').value; + config.RadarrHTTPAddress = document.querySelector('#RadarrHTTPAddress').value; + config.RadarrPort = document.querySelector('#RadarrPort').value; config.RadarrAPIKey = document.querySelector('#RadarrAPIKey').value; + config.SonarrHTTPAddress = document.querySelector('#SonarrHTTPAddress').value; + config.SonarrPort = document.querySelector('#SonarrPort').value; config.SonarrAPIKey = document.querySelector('#SonarrAPIKey').value; config.StaleMediaCutoff = document.querySelector('#StaleMediaCutoff').value; config.DebugMode = document.querySelector('#DebugMode').checked;