From e0833baaee08e8726b9d4d9810d79b3450c32af1 Mon Sep 17 00:00:00 2001 From: N0chteil <53608074+N0chteil@users.noreply.github.com> Date: Sun, 23 Jan 2022 16:46:06 +0100 Subject: [PATCH] Don't play the same song twice --- src/renderer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index 502d69df..e6ab3c2b 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -2467,7 +2467,7 @@ const app = new Vue({ shuffleArray(u) } else { 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); } }