The Free Software Media System - Server Backend & API
Rename IsNoWebContent to NoWebContent
Mark Monteiro4102e3afd0a9
diff --git a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs b/Emby.Server.Implementations/EntryPoints/StartupWizard.csindex 7c2b3cd5f2..bc6b8c956a 100644--- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs+++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs@@ -38,7 +38,7 @@ namespace Emby.Server.Implementations.EntryPointsreturn Task.CompletedTask;}- if (_appHost.Resolve<IConfiguration>().IsNoWebContent())+ if (_appHost.Resolve<IConfiguration>().NoWebContent()){BrowserLauncher.OpenSwaggerPage(_appHost);}diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.csindex 9450fee705..6412db7518 100644--- a/Jellyfin.Server/Program.cs+++ b/Jellyfin.Server/Program.cs@@ -287,7 +287,8 @@ namespace Jellyfin.Server}).UseStartup<Startup>();- if (!startupConfig.IsNoWebContent())+ // Set up static content hosting unless it has been disabled via config+ if (!startupConfig.NoWebContent()){// Fail startup if the web content does not existif (!Directory.Exists(appHost.ContentRoot) || !Directory.GetFiles(appHost.ContentRoot).Any())diff --git a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.csindex 1a9ac09ee9..e802eeed2a 100644--- a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs+++ b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs@@ -30,7 +30,7 @@ namespace MediaBrowser.Controller.Extensions/// <param name="configuration">The configuration to retrieve the value from.</param>/// <returns>The parsed config value.</returns>/// <exception cref="FormatException">The config value is not a valid bool string. See <see cref="bool.Parse(string)"/>.</exception>- public static bool IsNoWebContent(this IConfiguration configuration)+ public static bool NoWebContent(this IConfiguration configuration)=> configuration.GetValue<bool>(NoWebContentKey);/// <summary>