add duration discard to fill attempts (#1301)
This commit is contained in:
@@ -83,6 +83,11 @@ public abstract class ProgramScheduleItemCommandBase
|
||||
return BaseError.New("[PlayoutDuration] is required for playout mode 'duration'");
|
||||
}
|
||||
|
||||
if (item.DiscardToFillAttempts is null)
|
||||
{
|
||||
return BaseError.New("[DiscardToFillAttempts] is required for playout mode 'duration'");
|
||||
}
|
||||
|
||||
if (item.TailMode == TailMode.Filler && item.TailFillerId == null)
|
||||
{
|
||||
return BaseError.New("Tail Filler is required with tail mode Filler");
|
||||
@@ -248,6 +253,7 @@ public abstract class ProgramScheduleItemCommandBase
|
||||
PlaybackOrder = item.PlaybackOrder,
|
||||
PlayoutDuration = FixDuration(item.PlayoutDuration.GetValueOrDefault()),
|
||||
TailMode = item.TailMode,
|
||||
DiscardToFillAttempts = item.DiscardToFillAttempts.GetValueOrDefault(),
|
||||
CustomTitle = item.CustomTitle,
|
||||
GuideMode = item.GuideMode,
|
||||
PreRollFillerId = item.PreRollFillerId,
|
||||
|
||||
Reference in New Issue
Block a user