Refactor of plugin structure to make more sense compared to the default template
This commit is contained in:
52
Jellyfin.Plugin.MediaCleaner/Configuration.cs
Normal file
52
Jellyfin.Plugin.MediaCleaner/Configuration.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user