Make sure sequential playlist songs only come from that playlist.

This commit is contained in:
Buster "Silver Eagle" Neece 2018-05-01 22:41:36 -05:00
parent 9282fedc29
commit 6f85e0bac8
1 changed files with 3 additions and 1 deletions

View File

@ -454,8 +454,10 @@ class SongHistoryRepository extends BaseRepository
JOIN spm.media sm
JOIN sm.song s
JOIN sm.station st
WHERE spm.weight >= :weight
WHERE spm.playlist_id = :playlist_id
AND spm.weight >= :weight
ORDER BY spm.weight ASC')
->setParameter('playlist_id', $playlist->getId())
->setMaxResults(1);
try {