diff --git a/CHANGELOG.md b/CHANGELOG.md index 1068b0343..a02918b2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix filler preset editor and deco dead air fallback editor to only show supported collection types - Fix infinite loop caused by impossible schedule (all collection items longer than schedule item duration) - Fix selecting audio and subtitle streams with two-letter language codes +- Fix adding pad filler to content that is less than one minute in duration ### Changed - Remove some unnecessary API calls related to media server scanning and paging diff --git a/ErsatzTV.Core/Scheduling/PlayoutModeSchedulerBase.cs b/ErsatzTV.Core/Scheduling/PlayoutModeSchedulerBase.cs index c30fd69f0..20a7f170b 100644 --- a/ErsatzTV.Core/Scheduling/PlayoutModeSchedulerBase.cs +++ b/ErsatzTV.Core/Scheduling/PlayoutModeSchedulerBase.cs @@ -417,7 +417,6 @@ public abstract class PlayoutModeSchedulerBase : IPlayoutModeScheduler whe TimeSpan.FromMinutes(currentMinute) + TimeSpan.FromMinutes(targetMinute); - var targetTime = new DateTimeOffset( almostTargetTime.Year, almostTargetTime.Month, @@ -427,6 +426,10 @@ public abstract class PlayoutModeSchedulerBase : IPlayoutModeScheduler whe 0, almostTargetTime.Offset); + // ensure filler works for content less than one minute + if (targetTime <= playoutItem.StartOffset + totalDuration) + targetTime = targetTime.AddMinutes(padFiller.PadToNearestMinute.Value); + TimeSpan remainingToFill = targetTime - totalDuration - playoutItem.StartOffset; // Logger.LogInformation(