aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Configuration')
-rw-r--r--MediaBrowser.Model/Configuration/ImageDownloadOptions.cs81
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs79
-rw-r--r--MediaBrowser.Model/Configuration/UserConfiguration.cs7
3 files changed, 129 insertions, 38 deletions
diff --git a/MediaBrowser.Model/Configuration/ImageDownloadOptions.cs b/MediaBrowser.Model/Configuration/ImageDownloadOptions.cs
new file mode 100644
index 000000000..603112110
--- /dev/null
+++ b/MediaBrowser.Model/Configuration/ImageDownloadOptions.cs
@@ -0,0 +1,81 @@
+
+namespace MediaBrowser.Model.Configuration
+{
+ /// <summary>
+ /// Class ImageDownloadOptions
+ /// </summary>
+ public class ImageDownloadOptions
+ {
+ /// <summary>
+ /// Download Art Image
+ /// </summary>
+ /// <value><c>true</c> if art; otherwise, <c>false</c>.</value>
+ public bool Art { get; set; }
+
+ /// <summary>
+ /// Download Logo Image
+ /// </summary>
+ /// <value><c>true</c> if logo; otherwise, <c>false</c>.</value>
+ public bool Logo { get; set; }
+
+ /// <summary>
+ /// Download Primary Image
+ /// </summary>
+ /// <value><c>true</c> if primary; otherwise, <c>false</c>.</value>
+ public bool Primary { get; set; }
+
+ /// <summary>
+ /// Download Backdrop Images
+ /// </summary>
+ /// <value><c>true</c> if backdrops; otherwise, <c>false</c>.</value>
+ public bool Backdrops { get; set; }
+
+ /// <summary>
+ /// Download Disc Image
+ /// </summary>
+ /// <value><c>true</c> if disc; otherwise, <c>false</c>.</value>
+ public bool Disc { get; set; }
+
+ /// <summary>
+ /// Download Thumb Image
+ /// </summary>
+ /// <value><c>true</c> if thumb; otherwise, <c>false</c>.</value>
+ public bool Thumb { get; set; }
+
+ /// <summary>
+ /// Download Banner Image
+ /// </summary>
+ /// <value><c>true</c> if banner; otherwise, <c>false</c>.</value>
+ public bool Banner { get; set; }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ImageDownloadOptions"/> class.
+ /// </summary>
+ public ImageDownloadOptions()
+ {
+ Art = true;
+ Logo = true;
+ Primary = true;
+ Backdrops = true;
+ Disc = true;
+ Thumb = true;
+ Banner = true;
+ }
+ }
+
+ /// <summary>
+ /// Class MetadataOptions.
+ /// </summary>
+ public class MetadataOptions
+ {
+ public int MaxBackdrops { get; set; }
+
+ public int MinBackdropWidth { get; set; }
+
+ public MetadataOptions()
+ {
+ MaxBackdrops = 3;
+ MinBackdropWidth = 1280;
+ }
+ }
+}
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
+ }
}
diff --git a/MediaBrowser.Model/Configuration/UserConfiguration.cs b/MediaBrowser.Model/Configuration/UserConfiguration.cs
index b736474e0..90accff94 100644
--- a/MediaBrowser.Model/Configuration/UserConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/UserConfiguration.cs
@@ -60,6 +60,13 @@ namespace MediaBrowser.Model.Configuration
public bool DisplayUnairedEpisodes { get; set; }
public bool EnableRemoteControlOfOtherUsers { get; set; }
+ public bool BlockUnratedMovies { get; set; }
+ public bool BlockUnratedTrailers { get; set; }
+ public bool BlockUnratedSeries { get; set; }
+ public bool BlockUnratedMusic { get; set; }
+ public bool BlockUnratedGames { get; set; }
+ public bool BlockUnratedBooks { get; set; }
+
/// <summary>
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
/// </summary>