Просмотр исходного кода

Replace '_' with ':' in config keys

Bond-009 5 лет назад
Родитель
Сommit
2c0259f920

+ 2 - 2
Emby.Server.Implementations/ConfigurationOptions.cs

@@ -7,8 +7,8 @@ namespace Emby.Server.Implementations
     {
         public static Dictionary<string, string> Configuration => new Dictionary<string, string>
         {
-            { "HttpListenerHost_DefaultRedirectPath", "web/index.html" },
-            { "MusicBrainz_BaseUrl", "https://www.musicbrainz.org" },
+            { "HttpListenerHost:DefaultRedirectPath", "web/index.html" },
+            { "MusicBrainz:BaseUrl", "https://www.musicbrainz.org" },
             { FfmpegProbeSizeKey, "1G" },
             { FfmpegAnalyzeDurationKey, "200M" }
         };

+ 1 - 1
Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -57,7 +57,7 @@ namespace Emby.Server.Implementations.HttpServer
             _appHost = applicationHost;
             _logger = logger;
             _config = config;
-            _defaultRedirectPath = configuration["HttpListenerHost_DefaultRedirectPath"];
+            _defaultRedirectPath = configuration["HttpListenerHost:DefaultRedirectPath"];
             _baseUrlPrefix = _config.Configuration.BaseUrl;
             _networkManager = networkManager;
             _jsonSerializer = jsonSerializer;

+ 2 - 2
MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs

@@ -10,12 +10,12 @@ namespace MediaBrowser.Controller.Extensions
         /// <summary>
         /// The key for the FFmpeg probe size option.
         /// </summary>
-        public const string FfmpegProbeSizeKey = "FFmpeg_probesize";
+        public const string FfmpegProbeSizeKey = "FFmpeg:probesize";
 
         /// <summary>
         /// The key for the FFmpeg analyse duration option.
         /// </summary>
-        public const string FfmpegAnalyzeDurationKey = "FFmpeg_analyzeduration";
+        public const string FfmpegAnalyzeDurationKey = "FFmpeg:analyzeduration";
 
         /// <summary>
         /// Retrieves the FFmpeg probe size from the <see cref="IConfiguration" />.

+ 1 - 1
MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs

@@ -57,7 +57,7 @@ namespace MediaBrowser.Providers.Music
             _appHost = appHost;
             _logger = logger;
 
-            _musicBrainzBaseUrl = configuration["MusicBrainz_BaseUrl"];
+            _musicBrainzBaseUrl = configuration["MusicBrainz:BaseUrl"];
 
             // Use a stopwatch to ensure we don't exceed the MusicBrainz rate limit
             _stopWatchMusicBrainz.Start();