Browse Source

dont remove block items that are filler (#1846)

pull/1847/head
Jason Dove 1 year ago committed by GitHub
parent
commit
101d46e283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 5
      ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs

1
CHANGELOG.md

@ -53,6 +53,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Language codes where an English name cannot be found will be at the bottom of the list - Language codes where an English name cannot be found will be at the bottom of the list
- Fix local libraries to detect external subtitle files with unrecognized language codes - Fix local libraries to detect external subtitle files with unrecognized language codes
- Fix playback selection of subtitles with unrecognized language codes - Fix playback selection of subtitles with unrecognized language codes
- Fix incorrectly removing block items that are hidden from EPG when deco filler is applied
### Changed ### Changed
- Remove some unnecessary API calls related to media server scanning and paging - Remove some unnecessary API calls related to media server scanning and paging

5
ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs

@ -25,7 +25,10 @@ public class BlockPlayoutFillerBuilder(
if (mode is PlayoutBuildMode.Reset) if (mode is PlayoutBuildMode.Reset)
{ {
// remove all playout items with type filler // remove all playout items with type filler
var toRemove = playout.Items.Where(pi => pi.FillerKind is not FillerKind.None).ToList(); // except block items that are hidden from the guide (guide mode)
var toRemove = playout.Items
.Where(pi => pi.FillerKind is not FillerKind.None and not FillerKind.GuideMode)
.ToList();
foreach (PlayoutItem playoutItem in toRemove) foreach (PlayoutItem playoutItem in toRemove)
{ {
BlockPlayoutChangeDetection.RemoveItemAndHistory(playout, playoutItem); BlockPlayoutChangeDetection.RemoveItemAndHistory(playout, playoutItem);

Loading…
Cancel
Save