PluginConfiguration.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using MediaBrowser.Model.Plugins;
  2. namespace MediaBrowser.Plugins.Trailers.Configuration
  3. {
  4. /// <summary>
  5. /// Class PluginConfiguration
  6. /// </summary>
  7. public class PluginConfiguration : BasePluginConfiguration
  8. {
  9. /// <summary>
  10. /// Gets or sets the name of the folder.
  11. /// </summary>
  12. /// <value>The name of the folder.</value>
  13. public string FolderName { get; set; }
  14. /// <summary>
  15. /// Trailers older than this will not be downloaded and deleted if already downloaded.
  16. /// </summary>
  17. /// <value>The max trailer age.</value>
  18. public int? MaxTrailerAge { get; set; }
  19. /// <summary>
  20. /// Gets the path to where trailers should be downloaded.
  21. /// If not supplied then programdata/cache/trailers will be used.
  22. /// </summary>
  23. /// <value>The download path.</value>
  24. public string DownloadPath { get; set; }
  25. /// <summary>
  26. /// Gets or sets a value indicating whether [delete old trailers].
  27. /// </summary>
  28. /// <value><c>true</c> if [delete old trailers]; otherwise, <c>false</c>.</value>
  29. public bool DeleteOldTrailers { get; set; }
  30. /// <summary>
  31. /// Initializes a new instance of the <see cref="PluginConfiguration" /> class.
  32. /// </summary>
  33. public PluginConfiguration()
  34. : base()
  35. {
  36. FolderName = "Trailers";
  37. MaxTrailerAge = 60;
  38. }
  39. }
  40. }