diff options
Diffstat (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs')
| -rw-r--r-- | MediaBrowser.Model/Configuration/ServerConfiguration.cs | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 1f75969be..c8c205404 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -1,5 +1,4 @@ -using MediaBrowser.Model.Entities; -using MediaBrowser.Model.Weather; +using MediaBrowser.Model.Weather; using System; namespace MediaBrowser.Model.Configuration @@ -88,12 +87,6 @@ namespace MediaBrowser.Model.Configuration public string MetadataCountryCode { get; set; } /// <summary> - /// Gets or sets the max backdrops. - /// </summary> - /// <value>The max backdrops.</value> - public int MaxBackdrops { get; set; } - - /// <summary> /// Options for specific art to download for movies. /// </summary> public ImageDownloadOptions DownloadMovieImages { get; set; } @@ -143,12 +136,6 @@ namespace MediaBrowser.Model.Configuration public bool ShowLogWindow { get; set; } /// <summary> - /// The list of types that will NOT be allowed to have internet providers run against them even if they are turned on. - /// </summary> - /// <value>The internet provider exclude types.</value> - public string[] InternetProviderExcludeTypes { get; set; } - - /// <summary> /// Gets or sets the recent item days. /// </summary> /// <value>The recent item days.</value> @@ -181,12 +168,6 @@ namespace MediaBrowser.Model.Configuration public int FileWatcherDelay { get; set; } /// <summary> - /// Gets or sets a value indicating whether [enable developer tools]. - /// </summary> - /// <value><c>true</c> if [enable developer tools]; otherwise, <c>false</c>.</value> - public bool EnableDeveloperTools { get; set; } - - /// <summary> /// Gets or sets a value indicating whether [enable dashboard response caching]. /// Allows potential contributors without visual studio to modify production dashboard code and test changes. /// </summary> @@ -217,22 +198,26 @@ namespace MediaBrowser.Model.Configuration public ImageSavingConvention ImageSavingConvention { get; set; } /// <summary> - /// Gets or sets the width of the min movie backdrop. + /// Gets or sets a value indicating whether [enable people prefix sub folders]. /// </summary> - /// <value>The width of the min movie backdrop.</value> - public int MinMovieBackdropDownloadWidth { get; set; } + /// <value><c>true</c> if [enable people prefix sub folders]; otherwise, <c>false</c>.</value> + public bool EnablePeoplePrefixSubFolders { get; set; } /// <summary> - /// Gets or sets the width of the min series backdrop. + /// Gets or sets the encoding quality. /// </summary> - /// <value>The width of the min series backdrop.</value> - public int MinSeriesBackdropDownloadWidth { get; set; } + /// <value>The encoding quality.</value> + public EncodingQuality EncodingQuality { get; set; } - /// <summary> - /// Gets or sets a value indicating whether [enable people prefix sub folders]. - /// </summary> - /// <value><c>true</c> if [enable people prefix sub folders]; otherwise, <c>false</c>.</value> - public bool EnablePeoplePrefixSubFolders { get; set; } + public bool EnableMovieChapterImageExtraction { get; set; } + public bool EnableEpisodeChapterImageExtraction { get; set; } + public bool EnableOtherVideoChapterImageExtraction { get; set; } + + public MetadataOptions MovieOptions { get; set; } + public MetadataOptions TvOptions { get; set; } + public MetadataOptions MusicOptions { get; set; } + public MetadataOptions GameOptions { get; set; } + public MetadataOptions BookOptions { get; set; } /// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. @@ -247,9 +232,9 @@ namespace MediaBrowser.Model.Configuration EnableDashboardResponseCaching = true; EnableVideoImageExtraction = true; -#if (DEBUG) - EnableDeveloperTools = true; -#endif + EnableMovieChapterImageExtraction = true; + EnableEpisodeChapterImageExtraction = false; + EnableOtherVideoChapterImageExtraction = false; MinResumePct = 5; MaxResumePct = 90; @@ -260,7 +245,6 @@ namespace MediaBrowser.Model.Configuration RecentItemDays = 10; EnableInternetProviders = true; //initial installs will need these - InternetProviderExcludeTypes = new string[] { }; ManualLoginClients = new ManualLoginCategory[] { }; @@ -275,7 +259,6 @@ namespace MediaBrowser.Model.Configuration }; DownloadMusicArtistImages = new ImageDownloadOptions(); DownloadMusicAlbumImages = new ImageDownloadOptions(); - MaxBackdrops = 3; SortReplaceCharacters = new[] { ".", "+", "%" }; SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" }; @@ -283,8 +266,20 @@ namespace MediaBrowser.Model.Configuration SeasonZeroDisplayName = "Specials"; - MinMovieBackdropDownloadWidth = 1280; - MinSeriesBackdropDownloadWidth = 1280; + MovieOptions = new MetadataOptions(); + TvOptions = new MetadataOptions(); + + MusicOptions = new MetadataOptions() + { + MaxBackdrops = 1 + }; + + GameOptions = new MetadataOptions(); + + BookOptions = new MetadataOptions + { + MaxBackdrops = 1 + }; } } @@ -293,4 +288,12 @@ namespace MediaBrowser.Model.Configuration Legacy, Compatible } + + public enum EncodingQuality + { + Auto, + HighSpeed, + HighQuality, + MaxQuality + } } |
