|
|
@ -1958,13 +1958,13 @@ namespace Emby.Server.Implementations.Library
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
public async Task UpdateItemsAsync(IReadOnlyList<BaseItem> items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
|
|
|
|
public async Task UpdateItemsAsync(IReadOnlyList<BaseItem> items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
_itemRepository.SaveItems(items, cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in items)
|
|
|
|
foreach (var item in items)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await RunMetadataSavers(item, updateReason).ConfigureAwait(false);
|
|
|
|
await RunMetadataSavers(item, updateReason).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_itemRepository.SaveItems(items, cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ItemUpdated is not null)
|
|
|
|
if (ItemUpdated is not null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (var item in items)
|
|
|
|
foreach (var item in items)
|
|
|
|