From 5f76b59e67f64c1f24b5938808521f356a67039e Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 18 Jan 2015 00:45:10 -0500 Subject: separate provider options --- MediaBrowser.Model/Configuration/FanartOptions.cs | 17 +++++++++++++++++ .../Configuration/ServerConfiguration.cs | 22 +++++++--------------- .../Configuration/TheMovieDbOptions.cs | 12 ++++++++++++ MediaBrowser.Model/Configuration/TvdbOptions.cs | 12 ++++++++++++ MediaBrowser.Model/Dlna/StreamBuilder.cs | 2 +- MediaBrowser.Model/MediaBrowser.Model.csproj | 3 +++ 6 files changed, 52 insertions(+), 16 deletions(-) create mode 100644 MediaBrowser.Model/Configuration/FanartOptions.cs create mode 100644 MediaBrowser.Model/Configuration/TheMovieDbOptions.cs create mode 100644 MediaBrowser.Model/Configuration/TvdbOptions.cs (limited to 'MediaBrowser.Model') diff --git a/MediaBrowser.Model/Configuration/FanartOptions.cs b/MediaBrowser.Model/Configuration/FanartOptions.cs new file mode 100644 index 0000000000..e992abe5de --- /dev/null +++ b/MediaBrowser.Model/Configuration/FanartOptions.cs @@ -0,0 +1,17 @@ + +namespace MediaBrowser.Model.Configuration +{ + public class FanartOptions + { + /// + /// Gets or sets a value indicating whether [enable automatic updates]. + /// + /// true if [enable automatic updates]; otherwise, false. + public bool EnableAutomaticUpdates { get; set; } + /// + /// Gets or sets the user API key. + /// + /// The user API key. + public string UserApiKey { get; set; } + } +} diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 755fe8aa83..e51cca7708 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -1,5 +1,4 @@ -using System.Xml.Schema; -using MediaBrowser.Model.Dto; +using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; namespace MediaBrowser.Model.Configuration @@ -32,10 +31,11 @@ namespace MediaBrowser.Model.Configuration /// /// The HTTPS server port number. public int HttpsPortNumber { get; set; } - - /// Gets or sets the value pointing to the file system where the ssl certiifcate is located. + + /// + /// Gets or sets a value indicating whether [use HTTPS]. /// - /// The value pointing to the file system where the ssl certiifcate is located. + /// true if [use HTTPS]; otherwise, false. public bool UseHttps { get; set; } /// @@ -154,6 +154,7 @@ namespace MediaBrowser.Model.Configuration /// /// true if [enable dashboard response caching]; otherwise, false. public bool EnableDashboardResponseCaching { get; set; } + public bool EnableDashboardResourceMinification { get; set; } /// /// Allows the dashboard to be served from a custom path. @@ -161,18 +162,8 @@ namespace MediaBrowser.Model.Configuration /// The dashboard source path. public string DashboardSourcePath { get; set; } - /// - /// Gets or sets a value indicating whether [enable tv db updates]. - /// - /// true if [enable tv db updates]; otherwise, false. - public bool EnableTvDbUpdates { get; set; } - public bool EnableTmdbUpdates { get; set; } - public bool StoreArtistsInMetadata { get; set; } - public bool EnableFanArtUpdates { get; set; } - public string FanartApiKey { get; set; } - /// /// Gets or sets the image saving convention. /// @@ -220,6 +211,7 @@ namespace MediaBrowser.Model.Configuration UseHttps = false; CertificatePath = null; EnableDashboardResponseCaching = true; + EnableDashboardResourceMinification = true; EnableAutomaticRestart = true; EnableWin8HttpListener = true; diff --git a/MediaBrowser.Model/Configuration/TheMovieDbOptions.cs b/MediaBrowser.Model/Configuration/TheMovieDbOptions.cs new file mode 100644 index 0000000000..9a73e34764 --- /dev/null +++ b/MediaBrowser.Model/Configuration/TheMovieDbOptions.cs @@ -0,0 +1,12 @@ + +namespace MediaBrowser.Model.Configuration +{ + public class TheMovieDbOptions + { + /// + /// Gets or sets a value indicating whether [enable automatic updates]. + /// + /// true if [enable automatic updates]; otherwise, false. + public bool EnableAutomaticUpdates { get; set; } + } +} diff --git a/MediaBrowser.Model/Configuration/TvdbOptions.cs b/MediaBrowser.Model/Configuration/TvdbOptions.cs new file mode 100644 index 0000000000..034af609c4 --- /dev/null +++ b/MediaBrowser.Model/Configuration/TvdbOptions.cs @@ -0,0 +1,12 @@ + +namespace MediaBrowser.Model.Configuration +{ + public class TvdbOptions + { + /// + /// Gets or sets a value indicating whether [enable automatic updates]. + /// + /// true if [enable automatic updates]; otherwise, false. + public bool EnableAutomaticUpdates { get; set; } + } +} diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs index f1c6875379..721da54a80 100644 --- a/MediaBrowser.Model/Dlna/StreamBuilder.cs +++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs @@ -548,7 +548,7 @@ namespace MediaBrowser.Model.Dlna { SubtitleProfile externalProfile = GetSubtitleProfile(options.Profile.SubtitleProfiles, SubtitleDeliveryMethod.External, _serverTextSubtitleOutputs); - if (options.Context == EncodingContext.Streaming && externalProfile != null) + if (externalProfile != null) { return externalProfile; } diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 599e4a9021..716f795625 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -97,8 +97,11 @@ + + + -- cgit v1.2.3