aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/ServerConfiguration.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs')
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs188
1 files changed, 130 insertions, 58 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index 4786194e2..ba5b6a122 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -1,6 +1,5 @@
-using MediaBrowser.Model.Entities;
-using MediaBrowser.Model.FileOrganization;
-using MediaBrowser.Model.LiveTv;
+using MediaBrowser.Model.Dto;
+using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Configuration
{
@@ -16,6 +15,12 @@ namespace MediaBrowser.Model.Configuration
public bool EnableUPnP { get; set; }
/// <summary>
+ /// Gets or sets the public mapped port.
+ /// </summary>
+ /// <value>The public mapped port.</value>
+ public int PublicPort { get; set; }
+
+ /// <summary>
/// Gets or sets the HTTP server port number.
/// </summary>
/// <value>The HTTP server port number.</value>
@@ -52,6 +57,12 @@ namespace MediaBrowser.Model.Configuration
public bool SaveLocalMeta { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether [enable localized guids].
+ /// </summary>
+ /// <value><c>true</c> if [enable localized guids]; otherwise, <c>false</c>.</value>
+ public bool EnableLocalizedGuids { get; set; }
+
+ /// <summary>
/// Gets or sets the preferred metadata language.
/// </summary>
/// <value>The preferred metadata language.</value>
@@ -82,12 +93,6 @@ namespace MediaBrowser.Model.Configuration
public string[] SortRemoveWords { get; set; }
/// <summary>
- /// Show an output log window for debugging
- /// </summary>
- /// <value><c>true</c> if [show log window]; otherwise, <c>false</c>.</value>
- public bool ShowLogWindow { get; set; }
-
- /// <summary>
/// Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated.
/// </summary>
/// <value>The min resume PCT.</value>
@@ -140,21 +145,8 @@ namespace MediaBrowser.Model.Configuration
/// <value>The image saving convention.</value>
public ImageSavingConvention ImageSavingConvention { 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; }
-
- /// <summary>
- /// Gets or sets the encoding quality.
- /// </summary>
- /// <value>The encoding quality.</value>
- public EncodingQuality MediaEncodingQuality { get; set; }
-
public MetadataOptions[] MetadataOptions { get; set; }
- public bool EnableDebugEncodingLogging { get; set; }
public string TranscodingTempPath { get; set; }
public bool EnableAutomaticRestart { get; set; }
@@ -167,17 +159,15 @@ namespace MediaBrowser.Model.Configuration
public string UICulture { get; set; }
- public DlnaOptions DlnaOptions { get; set; }
-
- public double DownMixAudioBoost { get; set; }
-
- public bool DefaultMetadataSettingsApplied { get; set; }
-
public PeopleMetadataOptions PeopleMetadataOptions { get; set; }
+ public bool FindInternetTrailers { get; set; }
- public string[] SecureApps2 { get; set; }
+ public string[] InsecureApps7 { get; set; }
public bool SaveMetadataHidden { get; set; }
+ public bool EnableWin8HttpListener { get; set; }
+
+ public NameValuePair[] ContentTypes { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
@@ -185,16 +175,15 @@ namespace MediaBrowser.Model.Configuration
public ServerConfiguration()
: base()
{
- MediaEncodingQuality = EncodingQuality.Auto;
ImageSavingConvention = ImageSavingConvention.Compatible;
+ PublicPort = 8096;
HttpServerPortNumber = 8096;
EnableDashboardResponseCaching = true;
EnableAutomaticRestart = true;
- EnablePeoplePrefixSubFolders = true;
+ EnableWin8HttpListener = true;
EnableUPnP = true;
- DownMixAudioBoost = 2;
MinResumePct = 5;
MaxResumePct = 90;
@@ -204,9 +193,11 @@ namespace MediaBrowser.Model.Configuration
RealtimeMonitorDelay = 30;
- EnableInternetProviders = true;
+ EnableInternetProviders = true;
+ FindInternetTrailers = true;
PathSubstitutions = new PathSubstitution[] { };
+ ContentTypes = new NameValuePair[] { };
PreferredMetadataLanguage = "en";
MetadataCountryCode = "US";
@@ -223,15 +214,16 @@ namespace MediaBrowser.Model.Configuration
PeopleMetadataOptions = new PeopleMetadataOptions();
- SecureApps2 = new[]
+ InsecureApps7 = new[]
{
- "Dashboard",
- "MBKinect",
- "NuVue",
- "Media Browser Theater",
-
- //"Chrome Companion",
- "MB-Classic"
+ "Chromecast",
+ "iOS",
+ "Unknown app",
+ "MediaPortal",
+ "Media Portal",
+ "iPad",
+ "iPhone",
+ "Roku"
};
MetadataOptions = new[]
@@ -240,6 +232,103 @@ namespace MediaBrowser.Model.Configuration
new MetadataOptions(1, 1280)
{
+ ItemType = "Movie",
+ ImageOptions = new []
+ {
+ new ImageOption
+ {
+ Limit = 3,
+ MinWidth = 1280,
+ Type = ImageType.Backdrop
+ },
+
+ // Don't download this by default as it's rarely used.
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Art
+ },
+
+ // Don't download this by default as it's rarely used.
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Disc
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Primary
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Banner
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Thumb
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Logo
+ }
+ }
+ },
+
+ new MetadataOptions(1, 1280)
+ {
+ ItemType = "Series",
+ ImageOptions = new []
+ {
+ new ImageOption
+ {
+ Limit = 2,
+ MinWidth = 1280,
+ Type = ImageType.Backdrop
+ },
+
+ // Don't download this by default as it's rarely used.
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Art
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Primary
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Banner
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Thumb
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Logo
+ }
+ }
+ },
+
+ new MetadataOptions(1, 1280)
+ {
ItemType = "MusicAlbum",
ImageOptions = new []
{
@@ -293,21 +382,4 @@ namespace MediaBrowser.Model.Configuration
};
}
}
-
- public class PeopleMetadataOptions
- {
- public bool DownloadActorMetadata { get; set; }
- public bool DownloadDirectorMetadata { get; set; }
- public bool DownloadProducerMetadata { get; set; }
- public bool DownloadWriterMetadata { get; set; }
- public bool DownloadComposerMetadata { get; set; }
- public bool DownloadOtherPeopleMetadata { get; set; }
- public bool DownloadGuestStarMetadata { get; set; }
-
- public PeopleMetadataOptions()
- {
- DownloadActorMetadata = true;
- DownloadDirectorMetadata = true;
- }
- }
}