aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Configuration')
-rw-r--r--MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs4
-rw-r--r--MediaBrowser.Model/Configuration/ChannelOptions.cs13
-rw-r--r--MediaBrowser.Model/Configuration/EncodingOptions.cs4
-rw-r--r--MediaBrowser.Model/Configuration/EncodingQuality.cs10
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs154
-rw-r--r--MediaBrowser.Model/Configuration/UserConfiguration.cs1
6 files changed, 153 insertions, 33 deletions
diff --git a/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
index ca9db0bf0..2b53c6688 100644
--- a/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
@@ -63,10 +63,6 @@ namespace MediaBrowser.Model.Configuration
{
EnableAutoUpdate = true;
LogFileRetentionDays = 3;
-
-#if (DEBUG)
- EnableDebugLevelLogging = true;
-#endif
}
}
}
diff --git a/MediaBrowser.Model/Configuration/ChannelOptions.cs b/MediaBrowser.Model/Configuration/ChannelOptions.cs
index dfefa4edc..9bd0ef9c5 100644
--- a/MediaBrowser.Model/Configuration/ChannelOptions.cs
+++ b/MediaBrowser.Model/Configuration/ChannelOptions.cs
@@ -3,19 +3,6 @@
public class ChannelOptions
{
public int? PreferredStreamingWidth { get; set; }
-
public string DownloadPath { get; set; }
- public int? MaxDownloadAge { get; set; }
-
- public string[] DownloadingChannels { get; set; }
-
- public double? DownloadSizeLimit { get; set; }
-
- public ChannelOptions()
- {
- DownloadingChannels = new string[] { };
- DownloadSizeLimit = .5;
- MaxDownloadAge = 30;
- }
}
} \ No newline at end of file
diff --git a/MediaBrowser.Model/Configuration/EncodingOptions.cs b/MediaBrowser.Model/Configuration/EncodingOptions.cs
index ae714a84e..6d3894f02 100644
--- a/MediaBrowser.Model/Configuration/EncodingOptions.cs
+++ b/MediaBrowser.Model/Configuration/EncodingOptions.cs
@@ -3,7 +3,7 @@ namespace MediaBrowser.Model.Configuration
{
public class EncodingOptions
{
- public EncodingQuality EncodingQuality { get; set; }
+ public int EncodingThreadCount { get; set; }
public string TranscodingTempPath { get; set; }
public double DownMixAudioBoost { get; set; }
public string H264Encoder { get; set; }
@@ -15,9 +15,9 @@ namespace MediaBrowser.Model.Configuration
{
H264Encoder = "libx264";
DownMixAudioBoost = 2;
- EncodingQuality = EncodingQuality.Auto;
EnableThrottling = true;
ThrottleThresholdInSeconds = 120;
+ EncodingThreadCount = -1;
}
}
}
diff --git a/MediaBrowser.Model/Configuration/EncodingQuality.cs b/MediaBrowser.Model/Configuration/EncodingQuality.cs
deleted file mode 100644
index ba5a1f279..000000000
--- a/MediaBrowser.Model/Configuration/EncodingQuality.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace MediaBrowser.Model.Configuration
-{
- public enum EncodingQuality
- {
- Auto,
- HighSpeed,
- HighQuality,
- MaxQuality
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index 19403a55e..9f95953cf 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -99,6 +99,12 @@ namespace MediaBrowser.Model.Configuration
public bool EnableLocalizedGuids { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether [disable startup scan].
+ /// </summary>
+ /// <value><c>true</c> if [disable startup scan]; otherwise, <c>false</c>.</value>
+ public bool DisableStartupScan { get; set; }
+
+ /// <summary>
/// Gets or sets a value indicating whether [enable library metadata sub folder].
/// </summary>
/// <value><c>true</c> if [enable library metadata sub folder]; otherwise, <c>false</c>.</value>
@@ -213,11 +219,16 @@ namespace MediaBrowser.Model.Configuration
public int SharingExpirationDays { get; set; }
+ public bool DisableXmlSavers { get; set; }
+ public bool EnableWindowsShortcuts { get; set; }
+
+ public bool EnableVideoFrameAnalysis { get; set; }
+ public long VideoFrameAnalysisLimitBytes { get; set; }
+
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
public ServerConfiguration()
- : base()
{
ImageSavingConvention = ImageSavingConvention.Compatible;
PublicPort = 8096;
@@ -262,6 +273,9 @@ namespace MediaBrowser.Model.Configuration
PeopleMetadataOptions = new PeopleMetadataOptions();
+ EnableVideoFrameAnalysis = true;
+ VideoFrameAnalysisLimitBytes = 600000000;
+
InsecureApps9 = new[]
{
"Chromecast",
@@ -283,7 +297,59 @@ namespace MediaBrowser.Model.Configuration
{
new ImageOption
{
- Limit = 2,
+ Limit = 1,
+ 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 = 0,
+ Type = ImageType.Banner
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Thumb
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Logo
+ }
+ }
+ },
+
+ new MetadataOptions(1, 1280)
+ {
+ ItemType = "MusicVideo",
+ ImageOptions = new []
+ {
+ new ImageOption
+ {
+ Limit = 1,
MinWidth = 1280,
Type = ImageType.Backdrop
},
@@ -335,7 +401,7 @@ namespace MediaBrowser.Model.Configuration
{
new ImageOption
{
- Limit = 2,
+ Limit = 1,
MinWidth = 1280,
Type = ImageType.Backdrop
},
@@ -432,9 +498,89 @@ namespace MediaBrowser.Model.Configuration
}
},
+ new MetadataOptions(1, 1280)
+ {
+ ItemType = "BoxSet",
+ ImageOptions = new []
+ {
+ new ImageOption
+ {
+ Limit = 1,
+ MinWidth = 1280,
+ Type = ImageType.Backdrop
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Primary
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Thumb
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Logo
+ },
+
+ // 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
+ },
+
+ // Don't download this by default as it's rarely used.
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Banner
+ }
+ }
+ },
+
new MetadataOptions(0, 1280)
{
- ItemType = "Season"
+ ItemType = "Season",
+ ImageOptions = new []
+ {
+ new ImageOption
+ {
+ Limit = 0,
+ MinWidth = 1280,
+ Type = ImageType.Backdrop
+ },
+
+ new ImageOption
+ {
+ Limit = 1,
+ Type = ImageType.Primary
+ },
+
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Banner
+ },
+
+ new ImageOption
+ {
+ Limit = 0,
+ Type = ImageType.Thumb
+ }
+ }
}
};
}
diff --git a/MediaBrowser.Model/Configuration/UserConfiguration.cs b/MediaBrowser.Model/Configuration/UserConfiguration.cs
index 9dd84bc7d..349780958 100644
--- a/MediaBrowser.Model/Configuration/UserConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/UserConfiguration.cs
@@ -50,6 +50,7 @@ namespace MediaBrowser.Model.Configuration
public string[] PlainFolderViews { get; set; }
public bool HidePlayedInLatest { get; set; }
+ public bool DisplayChannelsInline { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.