Browse Source

add finish column to playout detail table (#1302)

pull/1303/head
Jason Dove 2 years ago committed by GitHub
parent
commit
a2acfe4d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 1
      ErsatzTV.Application/Playouts/Mapper.cs
  3. 2
      ErsatzTV.Application/Playouts/PlayoutItemViewModel.cs
  4. 2
      ErsatzTV/Pages/Playouts.razor

1
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 - 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 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 - 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 ### Fixed
- Skip checking for subtitles to extract when subtitles are not enabled on a channel/schedule item - Skip checking for subtitles to extract when subtitles are not enabled on a channel/schedule item

1
ErsatzTV.Application/Playouts/Mapper.cs

@ -8,6 +8,7 @@ internal static class Mapper
new( new(
GetDisplayTitle(playoutItem), GetDisplayTitle(playoutItem),
playoutItem.StartOffset, playoutItem.StartOffset,
playoutItem.FinishOffset,
GetDisplayDuration(playoutItem.FinishOffset - playoutItem.StartOffset)); GetDisplayDuration(playoutItem.FinishOffset - playoutItem.StartOffset));
internal static PlayoutAlternateScheduleViewModel ProjectToViewModel( internal static PlayoutAlternateScheduleViewModel ProjectToViewModel(

2
ErsatzTV.Application/Playouts/PlayoutItemViewModel.cs

@ -1,3 +1,3 @@
namespace ErsatzTV.Application.Playouts; namespace ErsatzTV.Application.Playouts;
public record PlayoutItemViewModel(string Title, DateTimeOffset Start, string Duration); public record PlayoutItemViewModel(string Title, DateTimeOffset Start, DateTimeOffset Finish, string Duration);

2
ErsatzTV/Pages/Playouts.razor

@ -99,11 +99,13 @@
</ToolBarContent> </ToolBarContent>
<HeaderContent> <HeaderContent>
<MudTh>Start</MudTh> <MudTh>Start</MudTh>
<MudTh>Finish</MudTh>
<MudTh>Media Item</MudTh> <MudTh>Media Item</MudTh>
<MudTh>Duration</MudTh> <MudTh>Duration</MudTh>
</HeaderContent> </HeaderContent>
<RowTemplate> <RowTemplate>
<MudTd DataLabel="Start">@context.Start.ToString("G")</MudTd> <MudTd DataLabel="Start">@context.Start.ToString("G")</MudTd>
<MudTd DataLabel="Finish">@context.Finish.ToString("G")</MudTd>
<MudTd DataLabel="Media Item">@context.Title</MudTd> <MudTd DataLabel="Media Item">@context.Title</MudTd>
<MudTd DataLabel="Duration">@context.Duration</MudTd> <MudTd DataLabel="Duration">@context.Duration</MudTd>
</RowTemplate> </RowTemplate>

Loading…
Cancel
Save