Minor change to get it to compile.
This commit is contained in:
parent
fcd1b2f0e4
commit
3b64171cde
|
@ -1319,7 +1319,7 @@ namespace Emby.Server.Implementations
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public string GetLoopbackHttpApiUrl()
|
public string GetLoopbackHttpApiUrl()
|
||||||
{
|
{
|
||||||
if (NetworkManager.IsIP6Enabled)
|
if (NetManager.IsIP6Enabled)
|
||||||
{
|
{
|
||||||
return GetLocalApiUrl("::1", Uri.UriSchemeHttp, HttpPort);
|
return GetLocalApiUrl("::1", Uri.UriSchemeHttp, HttpPort);
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,9 +72,9 @@ namespace Jellyfin.Api.Controllers
|
||||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||||
public ActionResult UpdateInitialConfiguration([FromBody, Required] StartupConfigurationDto startupConfiguration)
|
public ActionResult UpdateInitialConfiguration([FromBody, Required] StartupConfigurationDto startupConfiguration)
|
||||||
{
|
{
|
||||||
_config.Configuration.UICulture = startupConfiguration.UICulture;
|
_config.Configuration.UICulture = startupConfiguration.UICulture ?? string.Empty;
|
||||||
_config.Configuration.MetadataCountryCode = startupConfiguration.MetadataCountryCode;
|
_config.Configuration.MetadataCountryCode = startupConfiguration.MetadataCountryCode ?? string.Empty;
|
||||||
_config.Configuration.PreferredMetadataLanguage = startupConfiguration.PreferredMetadataLanguage;
|
_config.Configuration.PreferredMetadataLanguage = startupConfiguration.PreferredMetadataLanguage ?? string.Empty;
|
||||||
_config.SaveConfiguration();
|
_config.SaveConfiguration();
|
||||||
return NoContent();
|
return NoContent();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#nullable enable
|
|
||||||
#pragma warning disable CS1591
|
#pragma warning disable CS1591
|
||||||
#pragma warning disable CA1819
|
#pragma warning disable CA1819
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user