diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-11-11 19:29:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-11 19:29:49 +0100 |
| commit | 7b1314aff51a4b37ffee7ae880aeea15adb279ec (patch) | |
| tree | cbe13a1e9fadcdb32c8937e8027ce3bd49ab2358 /Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs | |
| parent | 4c88bf3fe3ef2e02632655acfcb8db18fd9f7d82 (diff) | |
| parent | 3de86ffdb4194736a70e363412dac3de1d08abec (diff) | |
Merge pull request #6823 from crobibero/displaypreferencesdto
Fix nullability on DisplayPreferencesDto
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs index 40f871759..74f2349f5 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs @@ -9,7 +9,7 @@ using Jellyfin.Data.Enums; using Jellyfin.Server.Implementations; using MediaBrowser.Controller; using MediaBrowser.Controller.Library; -using MediaBrowser.Model.Entities; +using MediaBrowser.Model.Dto; using Microsoft.Extensions.Logging; using SQLitePCL.pretty; @@ -114,6 +114,7 @@ namespace Jellyfin.Server.Migrations.Routines } var chromecastVersion = dto.CustomPrefs.TryGetValue("chromecastVersion", out var version) + && !string.IsNullOrEmpty(version) ? chromecastDict[version] : ChromecastVersion.Stable; dto.CustomPrefs.Remove("chromecastVersion"); |
