diff options
| -rw-r--r-- | Jellyfin.Server/StartupOptions.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Jellyfin.Server/StartupOptions.cs b/Jellyfin.Server/StartupOptions.cs index ac5df3925..0abc0fd91 100644 --- a/Jellyfin.Server/StartupOptions.cs +++ b/Jellyfin.Server/StartupOptions.cs @@ -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; + } } } |
