Skip to content

fix: use server-side queue resolution and correct play_media parameter#50

Merged
chrisuthe merged 1 commit intomainfrom
fix/queue-resolution
Mar 5, 2026
Merged

fix: use server-side queue resolution and correct play_media parameter#50
chrisuthe merged 1 commit intomainfrom
fix/queue-resolution

Conversation

@chrisuthe
Copy link
Copy Markdown
Owner

@chrisuthe chrisuthe commented Mar 5, 2026

Summary

  • Replace client-side queue ID resolution (players/all + syncedTo check) with the server's player_queues/get_active_queue API, which properly handles synced_to, active_group, active_source, and protocol player fallbacks
  • Rename play_media parameter from enqueue to option to match the server's QueueOption parameter name -- the old name was silently ignored, causing Add to Queue and Play Next to behave as regular Play

Test plan

  • Tap a track/album/playlist to play -- should no longer show queue error
  • Use "Add to Queue" on a library item -- should append instead of replacing
  • Use "Play Next" on a library item -- should insert after current track
  • Test with grouped/synced players -- queue should resolve to correct leader

🤖 Generated with Claude Code

- Replace client-side queue ID resolution (players/all + syncedTo check)
  with the server's player_queues/get_active_queue API, which properly
  handles synced_to, active_group, active_source, and protocol player
  fallbacks. The old approach missed cases where the active queue was
  determined by group membership or active source routing.

- Rename play_media parameter from 'enqueue' to 'option' to match the
  server's QueueOption parameter name. The old name was silently ignored,
  causing Add to Queue and Play Next to behave as regular Play.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chrisuthe chrisuthe merged commit 6ed2285 into main Mar 5, 2026
chrisuthe added a commit that referenced this pull request Mar 6, 2026
fix: use server-side queue resolution and correct play_media parameter
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

Successfully merging this pull request may close these issues.

1 participant