Browse Source

fix song and other video search index (#873)

pull/874/head
Jason Dove 3 years ago committed by GitHub
parent
commit
aa1735f024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 6
      ErsatzTV.Infrastructure/Search/SearchIndex.cs

2
CHANGELOG.md

@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Maintain stream continuity when playout is rebuilt for a channel that is actively being streamed
- Properly apply changes to episode title, sort title, outline and plot from Plex
- Fix search index for other videos and songs
- In previous versions, some libraries would incorrectly display only one item
## [0.6.2-beta] - 2022-06-18
### Fixed

6
ErsatzTV.Infrastructure/Search/SearchIndex.cs

@ -88,7 +88,7 @@ public sealed class SearchIndex : ISearchIndex @@ -88,7 +88,7 @@ public sealed class SearchIndex : ISearchIndex
_initialized = false;
}
public int Version => 25;
public int Version => 26;
public async Task<bool> Initialize(
ILocalFileSystem localFileSystem,
@ -1117,8 +1117,8 @@ public sealed class SearchIndex : ISearchIndex @@ -1117,8 +1117,8 @@ public sealed class SearchIndex : ISearchIndex
EpisodeMetadata em =>
$"{em.Title}_{em.Year}_{em.Episode.Season.SeasonNumber}_{em.EpisodeNumber}"
.ToLowerInvariant(),
OtherVideoMetadata ovm => $"{ovm.OriginalTitle}".ToLowerInvariant(),
SongMetadata sm => $"{sm.OriginalTitle}".ToLowerInvariant(),
OtherVideoMetadata ovm => $"{ovm.Title}_{ovm.Year}".ToLowerInvariant(),
SongMetadata sm => $"{sm.Title}_{sm.Year}".ToLowerInvariant(),
_ => $"{metadata.Title}_{metadata.Year}".ToLowerInvariant()
};

Loading…
Cancel
Save