Browse Source

add channel start time template data (#2698)

* add channel start time template data

* rename
pull/2699/head
Jason Dove 4 weeks ago committed by GitHub
parent
commit
85e25ca6ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 6
      ErsatzTV.Core/Metadata/ChannelTemplateDataKey.cs
  3. 1
      ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsElementLoader.cs

2
CHANGELOG.md

@ -21,6 +21,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -21,6 +21,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add framerate template data
- `RFrameRate` - the real content framerate (or channel normalized framerate) as reported by ffmpeg, e.g. `30000/1001`
- `FrameRate` - the decimal representation of `RFrameRate`, e.g. `29.97002997`
- Add `Channel_StartTime` template data
- This indicates the time that the transcode session started for the current channel
- Add remote stream metadata
- Remote stream definitions (yaml files) can now contain `title`, `plot`, `year` and `content_rating` fields
- Remote streams can now have thumbnails (same name as yaml file but with image extension)

6
ErsatzTV.Core/Metadata/ChannelTemplateDataKey.cs

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
namespace ErsatzTV.Core.Metadata;
public static class ChannelTemplateDataKey
{
public static readonly string ChannelStartTime = "Channel_StartTime";
}

1
ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsElementLoader.cs

@ -249,6 +249,7 @@ public partial class GraphicsElementLoader( @@ -249,6 +249,7 @@ public partial class GraphicsElementLoader(
[FFmpegProfileTemplateDataKey.ScaledResolution] = context.SquarePixelFrameSize,
[FFmpegProfileTemplateDataKey.RFrameRate] = context.FrameRate.RFrameRate,
[FFmpegProfileTemplateDataKey.FrameRate] = context.FrameRate.ParsedFrameRate,
[ChannelTemplateDataKey.ChannelStartTime] = context.ChannelStartTime,
[MediaItemTemplateDataKey.StreamSeek] = context.Seek,
[MediaItemTemplateDataKey.Start] = context.ContentStartTime,
[MediaItemTemplateDataKey.Stop] = context.ContentStartTime + context.Duration

Loading…
Cancel
Save