* fix software decoder pipeline bugs * tweak nvidia scaling logic * update changelog * update dependencies
17 lines
496 B
C#
17 lines
496 B
C#
using ErsatzTV.Core.Interfaces.Search;
|
|
|
|
namespace ErsatzTV.Application.Search;
|
|
|
|
public class RemoveMediaItemsHandler : IRequestHandler<RemoveMediaItems>
|
|
{
|
|
private readonly ISearchIndex _searchIndex;
|
|
|
|
public RemoveMediaItemsHandler(ISearchIndex searchIndex) => _searchIndex = searchIndex;
|
|
|
|
public async Task Handle(RemoveMediaItems request, CancellationToken cancellationToken)
|
|
{
|
|
await _searchIndex.RemoveItems(request.MediaItemIds);
|
|
_searchIndex.Commit();
|
|
}
|
|
}
|