aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jellyfin.Server.Implementations/Users/DisplayPreferencesManager.cs (renamed from Jellyfin.Server.Implementations/DisplayPreferencesManager.cs)2
-rw-r--r--MediaBrowser.Api/DisplayPreferencesService.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/DisplayPreferencesManager.cs b/Jellyfin.Server.Implementations/Users/DisplayPreferencesManager.cs
index 132e74c6a..29ec6e706 100644
--- a/Jellyfin.Server.Implementations/DisplayPreferencesManager.cs
+++ b/Jellyfin.Server.Implementations/Users/DisplayPreferencesManager.cs
@@ -3,7 +3,7 @@ using System.Linq;
using Jellyfin.Data.Entities;
using MediaBrowser.Controller;
-namespace Jellyfin.Server.Implementations
+namespace Jellyfin.Server.Implementations.Users
{
/// <summary>
/// Manages the storage and retrieval of display preferences through Entity Framework.
diff --git a/MediaBrowser.Api/DisplayPreferencesService.cs b/MediaBrowser.Api/DisplayPreferencesService.cs
index b95ab0dfd..cca2092e9 100644
--- a/MediaBrowser.Api/DisplayPreferencesService.cs
+++ b/MediaBrowser.Api/DisplayPreferencesService.cs
@@ -148,7 +148,7 @@ namespace MediaBrowser.Api
foreach (var key in request.CustomPrefs.Keys.Where(key => key.StartsWith("homesection")))
{
- var order = int.Parse(key.Substring("homesection".Length));
+ var order = int.Parse(key.AsSpan().Slice("homesection".Length));
if (!Enum.TryParse<HomeSectionType>(request.CustomPrefs[key], true, out var type))
{
type = order < 7 ? defaults[order] : HomeSectionType.None;