diff options
| author | dfederm <david.federman@outlook.com> | 2026-02-14 05:57:24 -0500 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2026-02-14 05:57:24 -0500 |
| commit | d8543351e256fef6f71ab2a4a45fcc50cfc4084c (patch) | |
| tree | eb546111846a6bb1553296aaa0d641791efb94da | |
| parent | dce91cf8c8d01135c10058614551f2f7f70a633c (diff) | |
Backport pull request #16226 from jellyfin/release-10.11.z
Deduplicate provider IDs during MigrateLibraryDb migration
Original-merge: 58c330b63d5e373ed1d9260a75d837922ca68830
Merged-by: Bond-009 <bond.009@outlook.com>
Backported-by: Bond_009 <bond.009@outlook.com>
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs index 4b1e53a35..70761fa7d 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs @@ -1163,7 +1163,9 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine Item = null!, ProviderId = e[0], ProviderValue = string.Join('|', e.Skip(1)) - }).ToArray(); + }) + .DistinctBy(e => e.ProviderId) + .ToArray(); } if (reader.TryGetString(index++, out var imageInfos)) |
