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

[FEAT]: Add Blocked Track Into Queue When User Unblocks It #209

Open
cdrani opened this issue May 16, 2024 · 0 comments
Open

[FEAT]: Add Blocked Track Into Queue When User Unblocks It #209

cdrani opened this issue May 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cdrani
Copy link
Owner

cdrani commented May 16, 2024

Implement

ONLY IF IN CURRENT QUEUE

User blocks track

  1. Save the metadata for the track if in Spotify's queue (next_tracks array)
  2. Save the metadata for the track above it (if applicable), otherwise the track above it is the Now Playing track.

User unblocks same track

  1. Check saved metadata for above
    • if found, find index of the the track above in next_tracks, and insert freshly unblocked track metadata after it
    • if not found, the track above is Now Playing, so insert freshly ublocked track at top of next_tracks
  2. POST updated next_tracks to spotify
@cdrani cdrani added the enhancement New feature or request label May 16, 2024
@cdrani cdrani self-assigned this May 16, 2024
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