Skip to content

fix: play a list of tracks the Web API names spotify:webapi with an id - #449

Merged
devgianlu merged 1 commit into
masterfrom
fix/webapi-track-list-id
Nov 18, 2026
Merged

devgianlu merged 1 commit into
masterfrom
fix/webapi-track-list-id

Conversation

@devgianlu

Copy link
Copy Markdown
Owner

The Web API now follows spotify:webapi with an id of its own when it plays a request naming uris, as in spotify:webapi:2rTTCnsdFHFb5KvCEsY2lb. That uri names no context either: the tracks still come inline. Since #445 only the bare spotify:webapi was recognized, so the new form was taken for a context uri of an unknown type. The play then failed with unsupported context type, nothing played, and a later pause was refused with 403 "Restriction violated".

IsWebApiTrackListUri now accepts spotify:webapi with or without an id. Both places that looked for the bare uri use it: inferring a context's item type, and skipping the metadata sweep.

Tests: the three existing Web API tests now also cover the uri with an id. They fail without the fix, and go test -tags "test_unit test_integration" ./... passes with it.

🤖 Generated with Claude Code

The Web API now follows spotify:webapi with an id of its own, as in
spotify:webapi:2rTTCnsdFHFb5KvCEsY2lb. That uri names no context either:
the items still come inline. It was taken for a context uri of an unknown
type, so a play naming "uris" failed with "unsupported context type",
and nothing played.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devgianlu
devgianlu merged commit e405921 into master Nov 18, 2026
11 checks passed
@devgianlu
devgianlu deleted the fix/webapi-track-list-id branch November 18, 2026 09:30
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