|
|
|
|
@ -106,7 +106,7 @@ namespace ErsatzTV.Core.Scheduling
@@ -106,7 +106,7 @@ namespace ErsatzTV.Core.Scheduling
|
|
|
|
|
PlayoutAnchor startAnchor = FindStartAnchor(playout, playoutStart, sortedScheduleItems); |
|
|
|
|
|
|
|
|
|
// start at the previously-decided time
|
|
|
|
|
DateTimeOffset currentTime = new DateTimeOffset(startAnchor.NextStart, TimeSpan.Zero).ToLocalTime(); |
|
|
|
|
DateTimeOffset currentTime = startAnchor.NextStartOffset.ToLocalTime(); |
|
|
|
|
_logger.LogDebug( |
|
|
|
|
"Starting playout {PlayoutId} for channel {ChannelNumber} - {ChannelName} at {StartTime}", |
|
|
|
|
playout.Id, |
|
|
|
|
@ -297,7 +297,7 @@ namespace ErsatzTV.Core.Scheduling
@@ -297,7 +297,7 @@ namespace ErsatzTV.Core.Scheduling
|
|
|
|
|
{ |
|
|
|
|
NextScheduleItem = schedule, |
|
|
|
|
NextScheduleItemId = schedule.Id, |
|
|
|
|
NextStart = start.Date + schedule.StartTime.GetValueOrDefault() |
|
|
|
|
NextStart = (start - start.TimeOfDay).UtcDateTime + schedule.StartTime.GetValueOrDefault() |
|
|
|
|
}; |
|
|
|
|
case StartType.Dynamic: |
|
|
|
|
default: |
|
|
|
|
@ -305,7 +305,7 @@ namespace ErsatzTV.Core.Scheduling
@@ -305,7 +305,7 @@ namespace ErsatzTV.Core.Scheduling
|
|
|
|
|
{ |
|
|
|
|
NextScheduleItem = schedule, |
|
|
|
|
NextScheduleItemId = schedule.Id, |
|
|
|
|
NextStart = start.Date |
|
|
|
|
NextStart = (start - start.TimeOfDay).UtcDateTime |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|