Browse Source

fix updating jellyfin and emby tv seasons (#437)

* fix updating jellyfin and emby tv seasons

* update changelog
pull/438/head
Jason Dove 5 years ago committed by GitHub
parent
commit
67761c1a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 8
      ErsatzTV.Core/Emby/EmbyTelevisionLibraryScanner.cs
  3. 8
      ErsatzTV.Core/Jellyfin/JellyfinTelevisionLibraryScanner.cs

1
CHANGELOG.md

@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -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

8
ErsatzTV.Core/Emby/EmbyTelevisionLibraryScanner.cs

@ -230,7 +230,13 @@ namespace ErsatzTV.Core.Emby @@ -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<MediaItem> { updated });
foreach (MediaItem toIndex in await _searchRepository.GetItemToIndex(updated.Id))
{
await _searchIndex.UpdateItems(
_searchRepository,
new List<MediaItem> { toIndex });
}
}
},
async () =>

8
ErsatzTV.Core/Jellyfin/JellyfinTelevisionLibraryScanner.cs

@ -230,7 +230,13 @@ namespace ErsatzTV.Core.Jellyfin @@ -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<MediaItem> { updated });
foreach (MediaItem toIndex in await _searchRepository.GetItemToIndex(updated.Id))
{
await _searchIndex.UpdateItems(
_searchRepository,
new List<MediaItem> { toIndex });
}
}
},
async () =>

Loading…
Cancel
Save