diff --git a/CHANGELOG.md b/CHANGELOG.md index f4129eb9..55751603 100644 --- a/CHANGELOG.md +++ b/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 - Fix local libraries to detect external subtitle files 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 - Remove some unnecessary API calls related to media server scanning and paging diff --git a/ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs b/ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs index e6522058..d01b447e 100644 --- a/ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs +++ b/ErsatzTV.Core/Scheduling/BlockScheduling/BlockPlayoutFillerBuilder.cs @@ -25,7 +25,10 @@ public class BlockPlayoutFillerBuilder( if (mode is PlayoutBuildMode.Reset) { // 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) { BlockPlayoutChangeDetection.RemoveItemAndHistory(playout, playoutItem);