mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
Remove unused import, fix casing of startup wizard POST parameters
This commit is contained in:
parent
5a658cf260
commit
16a66dc89c
@ -6,7 +6,6 @@ using MediaBrowser.Controller.Configuration;
|
|||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Jellyfin.Api.Controllers
|
namespace Jellyfin.Api.Controllers
|
||||||
{
|
{
|
||||||
@ -61,18 +60,18 @@ namespace Jellyfin.Api.Controllers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Endpoint for updating the initial startup wizard configuration.
|
/// Endpoint for updating the initial startup wizard configuration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="uiCulture">The UI language culture.</param>
|
/// <param name="UICulture">The UI language culture.</param>
|
||||||
/// <param name="metadataCountryCode">The metadata country code.</param>
|
/// <param name="MetadataCountryCode">The metadata country code.</param>
|
||||||
/// <param name="preferredMetadataLanguage">The preferred language for metadata.</param>
|
/// <param name="PreferredMetadataLanguage">The preferred language for metadata.</param>
|
||||||
[HttpPost("Configuration")]
|
[HttpPost("Configuration")]
|
||||||
public void UpdateInitialConfiguration(
|
public void UpdateInitialConfiguration(
|
||||||
[FromForm] string uiCulture,
|
[FromForm] string UICulture,
|
||||||
[FromForm] string metadataCountryCode,
|
[FromForm] string MetadataCountryCode,
|
||||||
[FromForm] string preferredMetadataLanguage)
|
[FromForm] string PreferredMetadataLanguage)
|
||||||
{
|
{
|
||||||
_config.Configuration.UICulture = uiCulture;
|
_config.Configuration.UICulture = UICulture;
|
||||||
_config.Configuration.MetadataCountryCode = metadataCountryCode;
|
_config.Configuration.MetadataCountryCode = MetadataCountryCode;
|
||||||
_config.Configuration.PreferredMetadataLanguage = preferredMetadataLanguage;
|
_config.Configuration.PreferredMetadataLanguage = PreferredMetadataLanguage;
|
||||||
_config.SaveConfiguration();
|
_config.SaveConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user