aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index 8ce423298..be5dd0ce0 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -184,10 +184,8 @@ public class MigrateLibraryDb : IMigrationRoutine
{
return new AncestorId()
{
- Item = null!,
ItemId = reader.GetGuid(0),
- Id = reader.GetGuid(1),
- AncestorIdText = reader.GetString(2)
+ ParentItemId = reader.GetGuid(1)
};
}
@@ -273,7 +271,7 @@ public class MigrateLibraryDb : IMigrationRoutine
var item = new MediaStreamInfo
{
StreamIndex = reader.GetInt32(1),
- StreamType = reader.GetString(2),
+ StreamType = Enum.Parse<MediaStreamTypeEntity>(reader.GetString(2)),
Item = null!,
ItemId = reader.GetGuid(0),
AverageFrameRate = 0,