mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-10-20 05:20:58 -04:00
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using MediaBrowser.Model.Plugins;
|
|
|
|
namespace MediaBrowser.Plugins.Trailers.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Class PluginConfiguration
|
|
/// </summary>
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the name of the folder.
|
|
/// </summary>
|
|
/// <value>The name of the folder.</value>
|
|
public string FolderName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Trailers older than this will not be downloaded and deleted if already downloaded.
|
|
/// </summary>
|
|
/// <value>The max trailer age.</value>
|
|
public int? MaxTrailerAge { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the path to where trailers should be downloaded.
|
|
/// If not supplied then programdata/cache/trailers will be used.
|
|
/// </summary>
|
|
/// <value>The download path.</value>
|
|
public string DownloadPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether [delete old trailers].
|
|
/// </summary>
|
|
/// <value><c>true</c> if [delete old trailers]; otherwise, <c>false</c>.</value>
|
|
public bool DeleteOldTrailers { get; set; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="PluginConfiguration" /> class.
|
|
/// </summary>
|
|
public PluginConfiguration()
|
|
: base()
|
|
{
|
|
FolderName = "Trailers";
|
|
|
|
MaxTrailerAge = 60;
|
|
}
|
|
}
|
|
}
|