Now playing: allow seconds remaining to be negative

This commit is contained in:
2018-05-02 12:11:37 +02:00
parent d3bef132a4
commit 3772f19a49

View File

@@ -266,7 +266,7 @@ if($DEBUG) print "Creating schedule between {$start->format('Y-m-d H:i')} and {$
$current = $this->getTrack(); $current = $this->getTrack();
$next = $this->getTrack(/* next: */ true); $next = $this->getTrack(/* next: */ true);
$current->ends($next->start); $current->ends($next->start);
if($current->isLayout() || $current->secondsRemaining() < 0) { if($current->isLayout() /* || $current->secondsRemaining() < 0 */) {
if($next->isLayout()) { if($next->isLayout()) {
return response()->json(['inProgram' => true, 'current' => $program->name]); return response()->json(['inProgram' => true, 'current' => $program->name]);
} }