aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs')
-rw-r--r--MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs b/MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs
new file mode 100644
index 000000000..d54f01797
--- /dev/null
+++ b/MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs
@@ -0,0 +1,46 @@
+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;
+ }
+ }
+}