12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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;
- }
- }
- }
|