add xmltv block behavior setting (#2336)

* replace playout externaljsonfile and templatefile with schedulefile

* add scripted schedule-based playout

* wip - not functional yet

* temp disable scripted playout creation

* allow fast-forwarding block playouts

* add xmltv block behavior setting
This commit is contained in:
Jason Dove
2025-08-23 20:16:12 +00:00
committed by GitHub
parent e06ee54070
commit 53f281ce32
76 changed files with 25611 additions and 144 deletions
@@ -10,7 +10,8 @@ public class PlayoutEditViewModelValidator : AbstractValidator<PlayoutEditViewMo
{
RuleFor(p => p.Channel).NotNull();
RuleFor(p => p.ProgramSchedule).NotNull().When(p => string.IsNullOrWhiteSpace(p.Kind));
RuleFor(p => p.ExternalJsonFile).NotNull().When(p => p.Kind == PlayoutKind.ExternalJson);
RuleFor(p => p.ScheduleFile).NotNull().When(p =>
p.Kind is PlayoutKind.ExternalJson or PlayoutKind.Sequential or PlayoutKind.Scripted);
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>