Minor change to get it to compile.

This commit is contained in:
Jim Cartlidge 2020-09-30 18:02:36 +01:00
parent fcd1b2f0e4
commit 3b64171cde
3 changed files with 4 additions and 5 deletions

View File

@ -1319,7 +1319,7 @@ namespace Emby.Server.Implementations
/// <inheritdoc/>
public string GetLoopbackHttpApiUrl()
{
if (NetworkManager.IsIP6Enabled)
if (NetManager.IsIP6Enabled)
{
return GetLocalApiUrl("::1", Uri.UriSchemeHttp, HttpPort);
}

View File

@ -72,9 +72,9 @@ namespace Jellyfin.Api.Controllers
[ProducesResponseType(StatusCodes.Status204NoContent)]
public ActionResult UpdateInitialConfiguration([FromBody, Required] StartupConfigurationDto startupConfiguration)
{
_config.Configuration.UICulture = startupConfiguration.UICulture;
_config.Configuration.MetadataCountryCode = startupConfiguration.MetadataCountryCode;
_config.Configuration.PreferredMetadataLanguage = startupConfiguration.PreferredMetadataLanguage;
_config.Configuration.UICulture = startupConfiguration.UICulture ?? string.Empty;
_config.Configuration.MetadataCountryCode = startupConfiguration.MetadataCountryCode ?? string.Empty;
_config.Configuration.PreferredMetadataLanguage = startupConfiguration.PreferredMetadataLanguage ?? string.Empty;
_config.SaveConfiguration();
return NoContent();
}

View File

@ -1,4 +1,3 @@
#nullable enable
#pragma warning disable CS1591
#pragma warning disable CA1819