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

Check if song is from playlist queue or user queue #23

Open
idoria75 opened this issue Jan 24, 2024 · 1 comment
Open

Check if song is from playlist queue or user queue #23

idoria75 opened this issue Jan 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@idoria75
Copy link
Owner

This will be useful to check if the user decided to play a specific track next, or whether it is part of the normal playback

@idoria75 idoria75 added the enhancement New feature or request label Jan 24, 2024
@idoria75
Copy link
Owner Author

The method sp.queue()["queue"] returns the items in the queue, which can be both from the playlist or added by the user.
To check if the queue was changed by the user, we need to monitor the queue and compare its new state with the old one. If new songs are at the top of the queue, these were added by the user.

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

No branches or pull requests

1 participant