Repository navigation
feat: add playlist item drill-down support - #2
Merged
Merged
Conversation
Browse playlist tracks and episodes via Spotify's /playlists/{id}/items
endpoint, matching album and podcast drill-down. Falls back to playing
the playlist when Spotify forbids browsing (owned/collaborator-only).
Co-authored-by: bautistaaa <bautistaaa@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds Spotify playlist drill-down support to jam.nvim so users can browse and play individual tracks/episodes inside playlists (with a Development Mode fallback when Spotify denies access).
Changes:
- Implemented
Spotify:playlist_items(paginated) and exposed aplaylist_itemscapability. - Updated the Telescope picker to drill down into playlist contents on
<CR>, and to fall back to playing the playlist on HTTP 403. - Added
l:search prefix for playlists and updated docs/tests accordingly.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
lua/jam/providers/spotify.lua |
Adds playlist-items fetch with pagination, extends normalization for playlist item counts, and adds l: search filtering. |
lua/jam/ui/picker.lua |
Adds playlist drill-down workflow with a 403-handling fallback to “play playlist”. |
tests/provider.lua |
Adds coverage for playlist items pagination/normalization and the new l: prefix behavior. |
tests/smoke.lua |
Validates the new playlist_items capability flag exists. |
README.md |
Documents playlist drill-down and the new l: filter prefix. |
doc/jam.txt |
Updates help docs to include playlist drill-down behavior and l: prefix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Interleave search types so PLAYLIST rows appear near the top instead of after every track/album/artist. Cap search limit at Spotify's Dev Mode max of 10, and document the l: playlist filter. Co-authored-by: bautistaaa <bautistaaa@users.noreply.github.com>
bautistaaa
marked this pull request as ready for review
July 21, 2026 00:00
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Yes — the Spotify API supports playlist contents, and this PR adds drill-down for them the same way albums and podcasts already work.
API support
PLAYLISTin the results column)context_urialready workedGET /v1/playlists/{id}/itemsfor browsing tracks/episodes inside a playlistWhat changed
Spotify:playlist_itemswith pagination andadditional_types=track,episode<CR>on a playlist opens its items when allowedl:search prefix for playlists-only filteringPLAYLISTrows aren't buried under tracks/albums/artistslimitcapped at Spotify Dev Mode max of 10How to see playlists
PLAYLISTlabel in the left column (now mixed in earlier)l: discover weekly(or any playlist query)Testing
tests/provider.lua(playlist items,l:filter, interleaved results, limit cap)tests/smoke.lua(capability flag)