diff --git a/CHANGELOG.md b/CHANGELOG.md index 130bb60f5..fe50d5826 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/ErsatzTV.Core/Metadata/ContextTemplateDataKey.cs b/ErsatzTV.Core/Metadata/ContextTemplateDataKey.cs new file mode 100644 index 000000000..1cc3be53c --- /dev/null +++ b/ErsatzTV.Core/Metadata/ContextTemplateDataKey.cs @@ -0,0 +1,6 @@ +namespace ErsatzTV.Core.Metadata; + +public static class ContextTemplateDataKey +{ + public static readonly string ChannelStartTime = "Channel_StartTime"; +} diff --git a/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsElementLoader.cs b/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsElementLoader.cs index 039089d4a..7fd949fd2 100644 --- a/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsElementLoader.cs +++ b/ErsatzTV.Infrastructure/Streaming/Graphics/GraphicsElementLoader.cs @@ -249,6 +249,7 @@ public partial class GraphicsElementLoader( [FFmpegProfileTemplateDataKey.ScaledResolution] = context.SquarePixelFrameSize, [FFmpegProfileTemplateDataKey.RFrameRate] = context.FrameRate.RFrameRate, [FFmpegProfileTemplateDataKey.FrameRate] = context.FrameRate.ParsedFrameRate, + [ContextTemplateDataKey.ChannelStartTime] = context.ChannelStartTime, [MediaItemTemplateDataKey.StreamSeek] = context.Seek, [MediaItemTemplateDataKey.Start] = context.ContentStartTime, [MediaItemTemplateDataKey.Stop] = context.ContentStartTime + context.Duration