Fixes #5704 -- Also clear disabled playlists from queue.

This commit is contained in:
Buster Neece 2022-09-11 03:39:27 -05:00
parent c5184b2290
commit c9e8a76bae
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 5 additions and 4 deletions

View File

@ -251,10 +251,11 @@ final class Queue
return true;
}
return $this->scheduler->isPlaylistScheduledToPlayNow(
$playlist,
$expectedPlayTime
);
return $playlist->getIsEnabled() &&
$this->scheduler->isPlaylistScheduledToPlayNow(
$playlist,
$expectedPlayTime
);
}
public function getQueueRowLog(Entity\StationQueue $queueRow): ?array