Fixed AncestorIds and applied review comments

This commit is contained in:
JPVenson
2024-10-09 23:19:24 +00:00
parent eb601e944c
commit 2955f2f562
16 changed files with 3275 additions and 181 deletions

View File

@@ -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,