Don't play the same song twice

This commit is contained in:
N0chteil 2022-01-23 16:46:06 +01:00
parent 957733a4e1
commit e0833baaee

View file

@ -2467,7 +2467,7 @@ const app = new Vue({
shuffleArray(u) shuffleArray(u)
} else { } else {
for (let i = 0; i < app.showingPlaylist.relationships.tracks.data.length; i++) { for (let i = 0; i < app.showingPlaylist.relationships.tracks.data.length; i++) {
if (app.showingPlaylist.relationships.tracks.data[i].id == item.id) u.splice(0, i); if (app.showingPlaylist.relationships.tracks.data[i].id == item.id) u.splice(0, i+1);
} }
} }