The Free Software Media System - Server Backend & API
Merge branch 'master' into library_scan_speed
BaronGreenbacke8cb9cea7d04
diff --cc MediaBrowser.Model/Configuration/ServerConfiguration.csindex be313bde1b,06985ebf40..9381145e1d--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@@ -274,138 -438,6 +438,16 @@@ namespace MediaBrowser.Model.Configurat/// <summary>/// Gets or sets the number of days we should retain activity logs./// </summary>- public int? ActivityLogRetentionDays { get; set; }+ public int? ActivityLogRetentionDays { get; set; } = 30;++ /// <summary>+ /// Gets or sets the how the library scan fans out.+ /// </summary>+ public int LibraryScanFanoutConcurrency { get; set; }++ /// <summary>+ /// Gets or sets the how many metadata refreshes can run concurrently.+ /// </summary>+ public int LibraryMetadataRefreshConcurrency { get; set; }-- /// <summary>- /// Initializes a new instance of the <see cref="ServerConfiguration" /> class.- /// </summary>- public ServerConfiguration()- {- UninstalledPlugins = Array.Empty<string>();- RemoteIPFilter = Array.Empty<string>();- LocalNetworkSubnets = Array.Empty<string>();- LocalNetworkAddresses = Array.Empty<string>();- CodecsUsed = Array.Empty<string>();- PathSubstitutions = Array.Empty<PathSubstitution>();- IgnoreVirtualInterfaces = false;- EnableSimpleArtistDetection = false;- SkipDeserializationForBasicTypes = true;-- PluginRepositories = new List<RepositoryInfo>();-- DisplaySpecialsWithinSeasons = true;- EnableExternalContentInSuggestions = true;-- ImageSavingConvention = ImageSavingConvention.Compatible;- PublicPort = DefaultHttpPort;- PublicHttpsPort = DefaultHttpsPort;- HttpServerPortNumber = DefaultHttpPort;- HttpsPortNumber = DefaultHttpsPort;- EnableMetrics = false;- EnableHttps = false;- EnableDashboardResponseCaching = true;- EnableCaseSensitiveItemIds = true;- EnableNormalizedItemByNameIds = true;- DisableLiveTvChannelUserDataName = true;- EnableNewOmdbSupport = true;-- EnableRemoteAccess = true;- QuickConnectAvailable = false;-- EnableUPnP = false;- MinResumePct = 5;- MaxResumePct = 90;-- // 5 minutes- MinResumeDurationSeconds = 300;-- LibraryMonitorDelay = 60;-- ContentTypes = Array.Empty<NameValuePair>();-- PreferredMetadataLanguage = "en";- MetadataCountryCode = "US";-- SortReplaceCharacters = new[] { ".", "+", "%" };- SortRemoveCharacters = new[] { ",", "&", "-", "{", "}", "'" };- SortRemoveWords = new[] { "the", "a", "an" };-- BaseUrl = string.Empty;- UICulture = "en-US";-- MetadataOptions = new[]- {- new MetadataOptions()- {- ItemType = "Book"- },- new MetadataOptions()- {- ItemType = "Movie"- },- new MetadataOptions- {- ItemType = "MusicVideo",- DisabledMetadataFetchers = new[] { "The Open Movie Database" },- DisabledImageFetchers = new[] { "The Open Movie Database" }- },- new MetadataOptions- {- ItemType = "Series",- DisabledMetadataFetchers = new[] { "TheMovieDb" },- DisabledImageFetchers = new[] { "TheMovieDb" }- },- new MetadataOptions- {- ItemType = "MusicAlbum",- DisabledMetadataFetchers = new[] { "TheAudioDB" }- },- new MetadataOptions- {- ItemType = "MusicArtist",- DisabledMetadataFetchers = new[] { "TheAudioDB" }- },- new MetadataOptions- {- ItemType = "BoxSet"- },- new MetadataOptions- {- ItemType = "Season",- DisabledMetadataFetchers = new[] { "TheMovieDb" },- },- new MetadataOptions- {- ItemType = "Episode",- DisabledMetadataFetchers = new[] { "The Open Movie Database", "TheMovieDb" },- DisabledImageFetchers = new[] { "The Open Movie Database", "TheMovieDb" }- }- };-- EnableSlowResponseWarning = true;- SlowResponseThresholdMs = 500;- CorsHosts = new[] { "*" };- KnownProxies = Array.Empty<string>();- ActivityLogRetentionDays = 30;- LibraryScanFanoutConcurrency = 0;- LibraryMetadataRefreshConcurrency = 0;- }- }-- public class PathSubstitution- {- public string From { get; set; }-- public string To { get; set; }}}