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.cs37
1 files changed, 27 insertions, 10 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index 2833e7167..19403a55e 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -25,7 +25,7 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
/// <value>The public HTTPS port.</value>
public int PublicHttpsPort { get; set; }
-
+
/// <summary>
/// Gets or sets the HTTP server port number.
/// </summary>
@@ -49,7 +49,7 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
/// <value><c>true</c> if [enable user specific user views]; otherwise, <c>false</c>.</value>
public bool EnableUserSpecificUserViews { get; set; }
-
+
/// <summary>
/// Gets or sets the value pointing to the file system where the ssl certiifcate is located..
/// </summary>
@@ -103,7 +103,7 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
/// <value><c>true</c> if [enable library metadata sub folder]; otherwise, <c>false</c>.</value>
public bool EnableLibraryMetadataSubFolder { get; set; }
-
+
/// <summary>
/// Gets or sets the preferred metadata language.
/// </summary>
@@ -187,7 +187,6 @@ namespace MediaBrowser.Model.Configuration
public bool EnableAutomaticRestart { get; set; }
- public bool EnableRealtimeMonitor { get; set; }
public PathSubstitution[] PathSubstitutions { get; set; }
public string ServerName { get; set; }
@@ -208,6 +207,12 @@ namespace MediaBrowser.Model.Configuration
public bool EnableVideoArchiveFiles { get; set; }
public int RemoteClientBitrateLimit { get; set; }
+ public bool DenyIFrameEmbedding { get; set; }
+
+ public AutoOnOff EnableLibraryMonitor { get; set; }
+
+ public int SharingExpirationDays { get; set; }
+
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
@@ -224,15 +229,18 @@ namespace MediaBrowser.Model.Configuration
EnableDashboardResourceMinification = true;
EnableAutomaticRestart = true;
+ DenyIFrameEmbedding = true;
EnableUPnP = true;
+ SharingExpirationDays = 30;
MinResumePct = 5;
MaxResumePct = 90;
// 5 minutes
MinResumeDurationSeconds = 300;
+ EnableLibraryMonitor = AutoOnOff.Auto;
RealtimeLibraryMonitorDelay = 40;
EnableInternetProviders = true;
@@ -250,8 +258,6 @@ namespace MediaBrowser.Model.Configuration
SeasonZeroDisplayName = "Specials";
- EnableRealtimeMonitor = true;
-
UICulture = "en-us";
PeopleMetadataOptions = new PeopleMetadataOptions();
@@ -277,7 +283,7 @@ namespace MediaBrowser.Model.Configuration
{
new ImageOption
{
- Limit = 3,
+ Limit = 2,
MinWidth = 1280,
Type = ImageType.Backdrop
},
@@ -304,7 +310,7 @@ namespace MediaBrowser.Model.Configuration
new ImageOption
{
- Limit = 1,
+ Limit = 0,
Type = ImageType.Banner
},
@@ -374,7 +380,7 @@ namespace MediaBrowser.Model.Configuration
{
new ImageOption
{
- Limit = 1,
+ Limit = 0,
MinWidth = 1280,
Type = ImageType.Backdrop
},
@@ -414,11 +420,22 @@ namespace MediaBrowser.Model.Configuration
{
Limit = 0,
Type = ImageType.Art
+ },
+
+ // Don't download this by default
+ // Generally not used
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Logo
}
}
},
- new MetadataOptions(0, 1280) {ItemType = "Season"}
+ new MetadataOptions(0, 1280)
+ {
+ ItemType = "Season"
+ }
};
}
}