Wavelink
Wavelink copied to clipboard
never ending loop on pressing previous if using queue.history more than once
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 ...
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