Update index.js

This commit is contained in:
N0chteil 2022-01-23 16:43:50 +01:00
parent 7fdcaf9228
commit 957733a4e1

View file

@ -2463,13 +2463,14 @@ const app = new Vue({
u = query; u = query;
if (app.mk.shuffleMode == 1) {
shuffleArray(u)
} 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);
} }
if (app.mk.shuffleMode == 1) {
shuffleArray(u)
} }
app.mk.queue.append(u) app.mk.queue.append(u)
} else { } else {
app.getPlaylistFromID(id, true).then(function () { app.getPlaylistFromID(id, true).then(function () {