Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ded-lmfao opened this issue Dec 17, 2024 · 1 comment

Comments

@ded-lmfao
Copy link

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 ...

@chillymosh
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants