Fix LiveTV images not saving to database (#15083)

This commit is contained in:
theguymadmax 2025-10-23 18:37:55 -04:00 committed by GitHub
parent ca830d5be7
commit d738386fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -614,6 +614,13 @@ public sealed class BaseItemRepository
else
{
context.BaseItemProviders.Where(e => e.ItemId == entity.Id).ExecuteDelete();
context.BaseItemImageInfos.Where(e => e.ItemId == entity.Id).ExecuteDelete();
if (entity.Images is { Count: > 0 })
{
context.BaseItemImageInfos.AddRange(entity.Images);
}
context.BaseItems.Attach(entity).State = EntityState.Modified;
}
}