diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs index 9cc80344..dd613582 100644 --- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs +++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs @@ -875,6 +875,11 @@ public sealed class BaseItemRepository await context.BaseItemImageInfos.Where(e => e.ItemId == entity.Id).ExecuteDeleteAsync(cancellationToken).ConfigureAwait(false); await context.BaseItemMetadataFields.Where(e => e.ItemId == entity.Id).ExecuteDeleteAsync(cancellationToken).ConfigureAwait(false); + if (entity.Provider is { Count: > 0 }) + { + context.BaseItemProviders.AddRange(entity.Provider); + } + if (entity.Images is { Count: > 0 }) { context.BaseItemImageInfos.AddRange(entity.Images);