diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 27b628774..e970524d3 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -87,10 +87,7 @@ namespace Jellyfin.Api.Controllers { foreach (var (key, value) in customDisplayPreferences) { - if (!dto.CustomPrefs.ContainsKey(key)) - { - dto.CustomPrefs[key] = value; - } + dto.CustomPrefs.TryAdd(key, value); } }