Update index.js
This commit is contained in:
parent
7fdcaf9228
commit
957733a4e1
1 changed files with 5 additions and 4 deletions
|
@ -2463,13 +2463,14 @@ const app = new Vue({
|
||||||
|
|
||||||
u = query;
|
u = query;
|
||||||
|
|
||||||
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.mk.shuffleMode == 1) {
|
if (app.mk.shuffleMode == 1) {
|
||||||
shuffleArray(u)
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
app.mk.queue.append(u)
|
app.mk.queue.append(u)
|
||||||
} else {
|
} else {
|
||||||
app.getPlaylistFromID(id, true).then(function () {
|
app.getPlaylistFromID(id, true).then(function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue