aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-09-18 02:33:23 +0200
committerGitHub <noreply@github.com>2025-09-17 18:33:23 -0600
commiteaf33f01e1fce023491fe94d69f28de2f2c9666f (patch)
tree82cc0dc659b9c002f75a27a45763c2cb4a9d6c8e /Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
parentdb2dbaa62b85ba59ad2cfdcb99da71beb10cfe94 (diff)
#14751 Only migrate providerids that match assumption (#14810)
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index e8ff00dd2..aa7daf142 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -1086,12 +1086,12 @@ internal class MigrateLibraryDb : IDatabaseMigrationRoutine
if (reader.TryGetString(index++, out var providerIds))
{
- entity.Provider = providerIds.Split('|').Select(e => e.Split("="))
+ entity.Provider = providerIds.Split('|').Select(e => e.Split("=")).Where(e => e.Length >= 2)
.Select(e => new BaseItemProvider()
{
Item = null!,
ProviderId = e[0],
- ProviderValue = e[1]
+ ProviderValue = string.Join('|', e.Skip(1))
}).ToArray();
}