aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorTavares André <tavares_and@hotmail.com>2015-06-30 20:26:42 +0200
committerTavares André <tavares_and@hotmail.com>2015-06-30 20:26:42 +0200
commit27d6135493c778bddee6ad6e044ed167c6449d7d (patch)
tree4cf323758d3e9caf115c9627f8e6da7dd78c543f /MediaBrowser.Model
parent1e07dbec63bced51857e67b00941b91ca86a7f77 (diff)
parent86571a629764be30e6d2e671db9e87c42a72a7f4 (diff)
Merge branch 'dev' of https://github.com/MediaBrowser/MediaBrowser into dev
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Configuration/AutoOnOff.cs10
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs14
-rw-r--r--MediaBrowser.Model/MediaBrowser.Model.csproj1
3 files changed, 21 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Configuration/AutoOnOff.cs b/MediaBrowser.Model/Configuration/AutoOnOff.cs
new file mode 100644
index 0000000000..e911a0ff1b
--- /dev/null
+++ b/MediaBrowser.Model/Configuration/AutoOnOff.cs
@@ -0,0 +1,10 @@
+
+namespace MediaBrowser.Model.Configuration
+{
+ public enum AutoOnOff
+ {
+ Auto,
+ Enabled,
+ Disabled
+ }
+}
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index a0a7fc90d5..e7490b3fa2 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -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,10 @@ namespace MediaBrowser.Model.Configuration
public bool EnableVideoArchiveFiles { get; set; }
public int RemoteClientBitrateLimit { get; set; }
+ public bool DenyIFrameEmbedding { get; set; }
+
+ public AutoOnOff EnableLibraryMonitor { get; set; }
+
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
@@ -224,6 +227,7 @@ namespace MediaBrowser.Model.Configuration
EnableDashboardResourceMinification = true;
EnableAutomaticRestart = true;
+ DenyIFrameEmbedding = true;
EnableUPnP = true;
@@ -233,6 +237,7 @@ namespace MediaBrowser.Model.Configuration
// 5 minutes
MinResumeDurationSeconds = 300;
+ EnableLibraryMonitor = AutoOnOff.Auto;
RealtimeLibraryMonitorDelay = 40;
EnableInternetProviders = true;
@@ -250,8 +255,6 @@ namespace MediaBrowser.Model.Configuration
SeasonZeroDisplayName = "Specials";
- EnableRealtimeMonitor = true;
-
UICulture = "en-us";
PeopleMetadataOptions = new PeopleMetadataOptions();
@@ -426,7 +429,10 @@ namespace MediaBrowser.Model.Configuration
}
},
- new MetadataOptions(0, 1280) {ItemType = "Season"}
+ new MetadataOptions(0, 1280)
+ {
+ ItemType = "Season"
+ }
};
}
}
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index df3cd15f65..3daacdd733 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -96,6 +96,7 @@
<Compile Include="Chapters\RemoteChapterResult.cs" />
<Compile Include="Collections\CollectionCreationResult.cs" />
<Compile Include="Configuration\AccessSchedule.cs" />
+ <Compile Include="Configuration\AutoOnOff.cs" />
<Compile Include="Configuration\ChannelOptions.cs" />
<Compile Include="Configuration\ChapterOptions.cs" />
<Compile Include="Configuration\CinemaModeConfiguration.cs" />