diff --git a/ErsatzTV.Infrastructure/Search/ElasticSearchIndex.cs b/ErsatzTV.Infrastructure/Search/ElasticSearchIndex.cs index 02e29ca89..267d2bd52 100644 --- a/ErsatzTV.Infrastructure/Search/ElasticSearchIndex.cs +++ b/ErsatzTV.Infrastructure/Search/ElasticSearchIndex.cs @@ -46,7 +46,7 @@ public class ElasticSearchIndex : ISearchIndex return exists.IsValidResponse; } - public int Version => 43; + public int Version => 44; public async Task Initialize( ILocalFileSystem localFileSystem, @@ -910,6 +910,11 @@ public class ElasticSearchIndex : ISearchIndex doc.VideoBitDepth = pixelFormat.BitDepth; } + if (maybePixelFormat.IsNone && videoStream.BitsPerRawSample > 0) + { + doc.VideoBitDepth = videoStream.BitsPerRawSample; + } + var colorParams = new ColorParams( videoStream.ColorRange, videoStream.ColorSpace, diff --git a/ErsatzTV.Infrastructure/Search/LuceneSearchIndex.cs b/ErsatzTV.Infrastructure/Search/LuceneSearchIndex.cs index ad0a68c72..82d149bf3 100644 --- a/ErsatzTV.Infrastructure/Search/LuceneSearchIndex.cs +++ b/ErsatzTV.Infrastructure/Search/LuceneSearchIndex.cs @@ -110,7 +110,7 @@ public sealed class LuceneSearchIndex : ISearchIndex return Task.FromResult(directoryExists && fileExists); } - public int Version => 43; + public int Version => 44; public async Task Initialize( ILocalFileSystem localFileSystem, @@ -1395,6 +1395,11 @@ public sealed class LuceneSearchIndex : ISearchIndex doc.Add(new Int32Field(VideoBitDepthField, pixelFormat.BitDepth, Field.Store.NO)); } + if (maybePixelFormat.IsNone && videoStream.BitsPerRawSample > 0) + { + doc.Add(new Int32Field(VideoBitDepthField, videoStream.BitsPerRawSample, Field.Store.NO)); + } + var colorParams = new ColorParams( videoStream.ColorRange, videoStream.ColorSpace,