Make sure sequential playlist songs only come from that playlist.
This commit is contained in:
parent
9282fedc29
commit
6f85e0bac8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue