Browse Source

fix search bug (#1086)

* fix removing media items from search index

* update changelog
pull/1088/head
Jason Dove 4 years ago committed by GitHub
parent
commit
927e7724f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGELOG.md
  2. 4
      ErsatzTV.Application/Search/Commands/RemoveMediaItemsHandler.cs

3
CHANGELOG.md

@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
- Add new music video credit templates
### Fixed
- Fix many transcoding failures caused by the colorspace filter
- Fix song playback with VAAPI and NVENC

4
ErsatzTV.Application/Search/Commands/RemoveMediaItemsHandler.cs

@ -2,13 +2,13 @@ using ErsatzTV.Core.Interfaces.Search; @@ -2,13 +2,13 @@ using ErsatzTV.Core.Interfaces.Search;
namespace ErsatzTV.Application.Search;
public class RemoveMediaItemsHandler : IRequestHandler<ReindexMediaItems, Unit>
public class RemoveMediaItemsHandler : IRequestHandler<RemoveMediaItems, Unit>
{
private readonly ISearchIndex _searchIndex;
public RemoveMediaItemsHandler(ISearchIndex searchIndex) => _searchIndex = searchIndex;
public async Task<Unit> Handle(ReindexMediaItems request, CancellationToken cancellationToken)
public async Task<Unit> Handle(RemoveMediaItems request, CancellationToken cancellationToken)
{
await _searchIndex.RemoveItems(request.MediaItemIds);
_searchIndex.Commit();

Loading…
Cancel
Save