diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a8fea1f4..97183d8f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Fixed - Fix double scheduling; this could happen if the app was shutdown during a playout build +- Fix updating Jellyfin and Emby TV seasons ## [0.1.4-alpha] - 2021-10-14 ### Fixed diff --git a/ErsatzTV.Core/Emby/EmbyTelevisionLibraryScanner.cs b/ErsatzTV.Core/Emby/EmbyTelevisionLibraryScanner.cs index 1dddb5640..87abc2920 100644 --- a/ErsatzTV.Core/Emby/EmbyTelevisionLibraryScanner.cs +++ b/ErsatzTV.Core/Emby/EmbyTelevisionLibraryScanner.cs @@ -230,7 +230,13 @@ namespace ErsatzTV.Core.Emby foreach (EmbySeason updated in await _televisionRepository.Update(incoming)) { incoming.Show = show; - await _searchIndex.UpdateItems(_searchRepository, new List { updated }); + + foreach (MediaItem toIndex in await _searchRepository.GetItemToIndex(updated.Id)) + { + await _searchIndex.UpdateItems( + _searchRepository, + new List { toIndex }); + } } }, async () => diff --git a/ErsatzTV.Core/Jellyfin/JellyfinTelevisionLibraryScanner.cs b/ErsatzTV.Core/Jellyfin/JellyfinTelevisionLibraryScanner.cs index ed93783c9..6c9d7fd10 100644 --- a/ErsatzTV.Core/Jellyfin/JellyfinTelevisionLibraryScanner.cs +++ b/ErsatzTV.Core/Jellyfin/JellyfinTelevisionLibraryScanner.cs @@ -230,7 +230,13 @@ namespace ErsatzTV.Core.Jellyfin foreach (JellyfinSeason updated in await _televisionRepository.Update(incoming)) { incoming.Show = show; - await _searchIndex.UpdateItems(_searchRepository, new List { updated }); + + foreach (MediaItem toIndex in await _searchRepository.GetItemToIndex(updated.Id)) + { + await _searchIndex.UpdateItems( + _searchRepository, + new List { toIndex }); + } } }, async () =>