Przeglądaj źródła

Rename IsNoWebContent to NoWebContent

Mark Monteiro 5 lat temu
rodzic
commit
4102e3afd0

+ 1 - 1
Emby.Server.Implementations/EntryPoints/StartupWizard.cs

@@ -38,7 +38,7 @@ namespace Emby.Server.Implementations.EntryPoints
                 return Task.CompletedTask;
             }
 
-            if (_appHost.Resolve<IConfiguration>().IsNoWebContent())
+            if (_appHost.Resolve<IConfiguration>().NoWebContent())
             {
                 BrowserLauncher.OpenSwaggerPage(_appHost);
             }

+ 2 - 1
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 exist
                 if (!Directory.Exists(appHost.ContentRoot) || !Directory.GetFiles(appHost.ContentRoot).Any())

+ 1 - 1
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>