From e282b05b8f0ceee7a64fc4959a6bda3561c67ff7 Mon Sep 17 00:00:00 2001 From: JPVenson Date: Thu, 25 Sep 2025 17:02:20 +0300 Subject: [PATCH] fixes #14859 Add Check for ItemValues (#14860) --- Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs index f63b7ee625..8c775ab782 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs @@ -186,6 +186,11 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine foreach (SqliteDataReader dto in connection.Query(itemValueQuery)) { var itemId = dto.GetGuid(0); + if (!baseItemIds.Contains(itemId)) + { + continue; + } + var entity = GetItemValue(dto); var key = ((int)entity.Type, entity.Value); if (!localItems.TryGetValue(key, out var existing))