diff --git a/CHANGELOG.md b/CHANGELOG.md index 69682be5a..3099789f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - This setting only has an effect when it's configured to be greater than zero - When the current item is longer than the remaining duration, it will be discarded and ETV will try to fit the next item in the collection, up to the configured number of times - When the remaining duration is shorter than all items in the collection, the normal filler logic will be used +- Add `Finish` column to playout detail table ### Fixed - Skip checking for subtitles to extract when subtitles are not enabled on a channel/schedule item diff --git a/ErsatzTV.Application/Playouts/Mapper.cs b/ErsatzTV.Application/Playouts/Mapper.cs index ad82fd92b..40021fa99 100644 --- a/ErsatzTV.Application/Playouts/Mapper.cs +++ b/ErsatzTV.Application/Playouts/Mapper.cs @@ -8,6 +8,7 @@ internal static class Mapper new( GetDisplayTitle(playoutItem), playoutItem.StartOffset, + playoutItem.FinishOffset, GetDisplayDuration(playoutItem.FinishOffset - playoutItem.StartOffset)); internal static PlayoutAlternateScheduleViewModel ProjectToViewModel( diff --git a/ErsatzTV.Application/Playouts/PlayoutItemViewModel.cs b/ErsatzTV.Application/Playouts/PlayoutItemViewModel.cs index 52d1b8b18..57166ab5e 100644 --- a/ErsatzTV.Application/Playouts/PlayoutItemViewModel.cs +++ b/ErsatzTV.Application/Playouts/PlayoutItemViewModel.cs @@ -1,3 +1,3 @@ namespace ErsatzTV.Application.Playouts; -public record PlayoutItemViewModel(string Title, DateTimeOffset Start, string Duration); +public record PlayoutItemViewModel(string Title, DateTimeOffset Start, DateTimeOffset Finish, string Duration); diff --git a/ErsatzTV/Pages/Playouts.razor b/ErsatzTV/Pages/Playouts.razor index 0c3c8317d..9b13ddd40 100644 --- a/ErsatzTV/Pages/Playouts.razor +++ b/ErsatzTV/Pages/Playouts.razor @@ -99,11 +99,13 @@ Start + Finish Media Item Duration @context.Start.ToString("G") + @context.Finish.ToString("G") @context.Title @context.Duration