Replace '_' with ':' in config keys

This commit is contained in:
Bond-009 2019-12-12 16:57:16 +01:00
parent baadb504bb
commit 2c0259f920
4 changed files with 6 additions and 6 deletions

View File

@ -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" }
};

View File

@ -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;

View File

@ -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" />.

View File

@ -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();