Now playing: allow seconds remaining to be negative
This commit is contained in:
@@ -266,7 +266,7 @@ if($DEBUG) print "Creating schedule between {$start->format('Y-m-d H:i')} and {$
|
||||
$current = $this->getTrack();
|
||||
$next = $this->getTrack(/* next: */ true);
|
||||
$current->ends($next->start);
|
||||
if($current->isLayout() || $current->secondsRemaining() < 0) {
|
||||
if($current->isLayout() /* || $current->secondsRemaining() < 0 */) {
|
||||
if($next->isLayout()) {
|
||||
return response()->json(['inProgram' => true, 'current' => $program->name]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user