Files
ersatztv/ErsatzTV.Core/Domain/MediaItem/ChapterMediaVersion.cs
T
48f93b8af8 Support individual chapters as filler (#2208)
* Use chapters in duration filler

* add new option, migrations, and update filler preset editor

* Revert "Use chapters in duration filler"

This reverts commit d87a8a240a78c1cbca7b311125f8d3a84645d296.

* scaffold splitting filler by chapter

* implement chapters as filler

* update changelog

* re-add migrations

* Add duration for ChapterMediaItem

---------

Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
2025-08-04 00:18:14 +00:00

15 lines
345 B
C#

namespace ErsatzTV.Core.Domain;
public class ChapterMediaVersion : MediaVersion
{
public ChapterMediaVersion(MediaChapter chapter)
{
InPoint = chapter.StartTime;
Duration = chapter.EndTime - chapter.StartTime;
Title = chapter.Title;
}
public TimeSpan InPoint { get; }
public string Title { get; }
}