Refactor of plugin structure to make more sense compared to the default template

This commit is contained in:
2026-02-16 14:08:15 -07:00
parent 61e868bfa2
commit a720bba7a7
12 changed files with 110 additions and 185 deletions

View File

@@ -0,0 +1,52 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.MediaCleaner;
/// <summary>
/// Plugin configuration.
/// </summary>
public class Configuration : BasePluginConfiguration
{
/// <summary>
/// Gets or sets the http address for your Radarr instance.
/// </summary>
public string RadarrHTTPAddress { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the port for your Radarr instance.
/// </summary>
public string RadarrPort { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the api for your Radarr instance.
/// </summary>
public string RadarrAPIKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the http address for your Sonarr instance.
/// </summary>
public string SonarrHTTPAddress { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the port for your Sonarr instance.
/// </summary>
public string SonarrPort { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the api for your Sonarr instance.
/// </summary>
public string SonarrAPIKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the cut off days before deleting unwatched files.
/// </summary>
public int StaleMediaCutoff { get; set; } = 90;
/// <summary>
/// Gets or sets debug mode.
/// </summary>
public bool DebugMode { get; set; }
}