EarTensifier
EarTensifier copied to clipboard
A command that removes duplicate songs from the queue
Hey @Tetracyl, I would like to work on this issue
Hey @Tetracyl, I would like to work on this issue
Sure! Let me know if you need any help.
Hey @Tetracyl, I would like to work on this issue
Sure! Let me know if you need any help.
let oldtracks = dispatcher.queue
let counter = 0;
const newtracks = [];
for (let i = 0; i < oldtracks.length; i++) {
let exists = false;
for (let j = 0; j < newtracks.length; j++) {
if (oldtracks[i].info.uri === newtracks[j].info.uri) {
exists = true;
counter++;
break;
}
}
if (!exists) {
newtracks.push(oldtracks[i]);
}
}
dispatcher.queue = newtracks```
Hey @Tetracyl, I would like to work on this issue
Any updates on this?
Hey @Tetracyl, I would like to work on this issue
Any updates on this?
the above code works fine
Hey @Tetracyl, I would like to work on this issue
Any updates on this?
the above code works fine
Make a PR...