fix search index bug (#1231)

This commit is contained in:
Jason Dove
2023-04-05 21:52:31 -05:00
committed by GitHub
parent cf3b8d90e3
commit 7b3b9b4aad
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix transcoding some 10-bit content from media servers using VAAPI acceleration
- Fix decoding of MPEG-4 Part 2 (e.g. DivX) content using NVIDIA acceleration
- Fix color normalization from `bt470bg` to `bt709` using QSV acceleration
- Fix adding files to search index with unknown video codec
### Changed
- Use Poster artwork for XMLTV if available
@@ -96,7 +96,7 @@ public sealed class SearchIndex : ISearchIndex
_initialized = false;
}
public int Version => 34;
public int Version => 35;
public async Task<bool> Initialize(
ILocalFileSystem localFileSystem,
@@ -1153,8 +1153,11 @@ public sealed class SearchIndex : ISearchIndex
}
foreach (MediaStream videoStream in version.Streams.Filter(s => s.MediaStreamKind == MediaStreamKind.Video))
{
if (!string.IsNullOrWhiteSpace(videoStream.Codec))
{
doc.Add(new StringField(VideoCodecField, videoStream.Codec, Field.Store.NO));
}
Option<IPixelFormat> maybePixelFormat =
AvailablePixelFormats.ForPixelFormat(videoStream.PixelFormat, null);