Skip to content

Commit

Permalink
Exclude special rules on Request list.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Apr 25, 2023
1 parent 4b05857 commit aad0147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Api/Stations/Requests/ListAction.php
Expand Up @@ -124,7 +124,7 @@ private function getPlaylists(

/** @var StationPlaylist $playlist */
foreach ($playlists as $playlist) {
if ($this->scheduler->isPlaylistScheduledToPlayNow($playlist, $now)) {
if ($this->scheduler->isPlaylistScheduledToPlayNow($playlist, $now, true)) {
$ids[] = $playlist->getIdRequired();
}
}
Expand Down

2 comments on commit aad0147

@Moonbase59
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BusterNeece Is this supposed to fix the problem that songs from playlists in general rotation were also requestable while a scheduled playlists runs (and thus only songs from that playlist(s) should be requestable)? First testing indeed seems it does exactly that. Just asking for confirmation…

It would indeed be a great advantage, being able to open general rotation playlists for requests again.

@Moonbase59
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy too soon… After more testing, it doesn’t.

Please sign in to comment.