diff options
| author | crobibero <cody@robibe.ro> | 2020-12-03 15:00:26 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-03 15:00:26 -0700 |
| commit | e765184afa04b4f901f97406bada0cf94bc81605 (patch) | |
| tree | cc8a9352e9127f7a2ce31d6686b61b4cbda995a2 /Jellyfin.Api/Controllers/DisplayPreferencesController.cs | |
| parent | 685c96646849ddfebd47017345595a239a83b58d (diff) | |
Fix existing DisplayPreferences migration
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 e970524d3..7c94880bc 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -177,7 +177,7 @@ namespace Jellyfin.Api.Controllers foreach (var key in displayPreferences.CustomPrefs.Keys.Where(key => key.StartsWith("landing-", StringComparison.OrdinalIgnoreCase))) { - if (Guid.TryParse(key.Substring("landing-".Length), out var preferenceId)) + if (Guid.TryParse(key.AsSpan().Slice("landing-".Length), out var preferenceId)) { var itemPreferences = _displayPreferencesManager.GetItemDisplayPreferences(existingDisplayPreferences.UserId, preferenceId, existingDisplayPreferences.Client); itemPreferences.ViewType = Enum.Parse<ViewType>(displayPreferences.ViewType); |
