This commit is contained in:
Snowflake107 2021-05-08 15:32:46 +05:45
parent 18cc0fabef
commit c428335a56

View file

@ -822,9 +822,9 @@ export class Player extends EventEmitter {
queue.tracks = queue.tracks.filter((t) => t !== trackFound);
}
} else {
trackFound = queue.tracks.find((s) => s === track);
trackFound = queue.tracks.find((s) => s.url === track.url);
if (trackFound) {
queue.tracks = queue.tracks.filter((s) => s !== trackFound);
queue.tracks = queue.tracks.filter((s) => s.url !== trackFound.url);
}
}