Browse Source

fixes #14859 Add Check for ItemValues (#14860)

JPVenson 8 hours ago
parent
commit
e282b05b8f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs

+ 5 - 0
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))