aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/ServerConfiguration.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-19 01:36:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-19 01:36:21 -0500
commita9f2a72d0b87115185a82aa2245aef1ea2e2b59f (patch)
tree173238df9e4f3f9a943b2d91e8ba521c9d96cd20 /MediaBrowser.Model/Configuration/ServerConfiguration.cs
parentd2cae4012853bb6457554516f06e5bbf11121b8d (diff)
#680 - Support new episode file sorting
Diffstat (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs')
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs37
1 files changed, 35 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index ad65f79b6..b5afab3e5 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -224,7 +224,7 @@ namespace MediaBrowser.Model.Configuration
public bool EnableAutomaticRestart { get; set; }
-
+ public FileSortingOptions FileSortingOptions { get; set; }
public LiveTvOptions LiveTvOptions { get; set; }
/// <summary>
@@ -288,10 +288,12 @@ namespace MediaBrowser.Model.Configuration
BookOptions = new MetadataOptions
{
- MaxBackdrops = 1
+ MaxBackdrops = 1
};
LiveTvOptions = new LiveTvOptions();
+
+ FileSortingOptions = new FileSortingOptions();
}
}
@@ -313,4 +315,35 @@ namespace MediaBrowser.Model.Configuration
{
public int? GuideDays { get; set; }
}
+
+ public class FileSortingOptions
+ {
+ public bool IsEnabled { get; set; }
+ public int MinFileSizeMb { get; set; }
+ public string[] LeftOverFileExtensionsToDelete { get; set; }
+ public string[] TvWatchLocations { get; set; }
+
+ public string SeasonFolderPattern { get; set; }
+
+ public string SeasonZeroFolderName { get; set; }
+
+ public bool OverwriteExistingEpisodes { get; set; }
+
+ public bool DeleteEmptyFolders { get; set; }
+
+ public FileSortingOptions()
+ {
+ MinFileSizeMb = 50;
+
+ LeftOverFileExtensionsToDelete = new[] {
+ ".nfo",
+ ".txt"
+ };
+
+ TvWatchLocations = new string[] { };
+
+ SeasonFolderPattern = "Season %s";
+ SeasonZeroFolderName = "Season 0";
+ }
+ }
}