diff options
| author | Terrance <git@terrance.allofti.me> | 2022-11-27 01:59:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-26 18:59:25 -0700 |
| commit | 692a62ab4f6bc5987d5e0d25e9016673b27611bc (patch) | |
| tree | 030870dbf5fd8f77a25fa8077d28ef601b576505 /Jellyfin.Api/Controllers/DisplayPreferencesController.cs | |
| parent | 89772032e8d99c1bc936f41f02d1a876473a926f (diff) | |
Add missing format providers (fix CA1305 errors) (#8745)
Diffstat (limited to 'Jellyfin.Api/Controllers/DisplayPreferencesController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DisplayPreferencesController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 64ee5680c..14fd7eb3c 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -178,7 +178,7 @@ namespace Jellyfin.Api.Controllers foreach (var key in displayPreferences.CustomPrefs.Keys.Where(key => key.StartsWith("homesection", StringComparison.OrdinalIgnoreCase))) { - var order = int.Parse(key.AsSpan().Slice("homesection".Length)); + var order = int.Parse(key.AsSpan().Slice("homesection".Length), NumberStyles.Any, CultureInfo.InvariantCulture); if (!Enum.TryParse<HomeSectionType>(displayPreferences.CustomPrefs[key], true, out var type)) { type = order < 8 ? defaults[order] : HomeSectionType.None; |
