mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Do not add command line flag to the config hierarchy unless it is explicitly set
This commit is contained in:
parent
48ea7dc604
commit
7dd2f3a8f2
1 changed files with 9 additions and 3 deletions
|
|
@ -81,9 +81,15 @@ namespace Jellyfin.Server
|
|||
/// </summary>
|
||||
/// <returns>The configuration dictionary.</returns>
|
||||
public Dictionary<string, string> ConvertToConfig()
|
||||
=> new Dictionary<string, string>
|
||||
{
|
||||
var config = new Dictionary<string, string>();
|
||||
|
||||
if (NoWebContent)
|
||||
{
|
||||
{ ConfigurationExtensions.NoWebContentKey, NoWebContent.ToString(CultureInfo.InvariantCulture) }
|
||||
};
|
||||
config.Add(ConfigurationExtensions.NoWebContentKey, bool.TrueString);
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue