Wavelink icon indicating copy to clipboard operation
Wavelink copied to clipboard

never ending loop on pressing previous if using queue.history more than once

Open ded-lmfao opened this issue 11 months ago • 1 comments

when I tried playing songs from queue.history with reversed method .....I don't know but there is a problem in that as far as I feel the moment payer plays a song it gets saved in history and when I press previous button it plays the last song correct but only for first time and again that songs get saved in Queue.history which eventually ends up in a Non stop loop for last 2 songs when ever I press prev button more than once ...

ded-lmfao avatar Dec 17 '24 10:12 ded-lmfao

For this use case you probably want to use the add_history kwarg for the play method and set it to False. This will prevent it being added to history.

https://wavelink.dev/en/latest/wavelink.html#wavelink.Player.play

chillymosh avatar Dec 18 '24 18:12 chillymosh