fix search index bug (#1231)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user