Repository navigation
Spotify plugin: support Spotify Soloist next to go-librespot, and 2000 px covers (#388) - #392
Merged
Merged
Conversation
…h-resolution covers (#388) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er checks, soloist helper warnings (#388) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some 2000 px covers are close to 2 MB; larger ones fell back to 640 px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ist with soloist-autoupdate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
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.
Closes #388
What changed
The Spotify plugin (
librespot_client) can now read what is playing from Spotify Soloist, Spotify's own player, as well as from go-librespot. Spotify is closing the way go-librespot logs in, and some accounts can't use it any more.player:go-librespot(the default, so existing config files work as before) orsoloist.portmay be left empty: it then means the player's usual port, 24879 for go-librespot and 9878 for soloist.127.0.0.1:9878. At each update the plugin connects, asks once for the state (get_state), reads the answer and closes. It behaves like the go-librespot route: playing or buffering shows the song, paused keeps it foridle_timeout, idle or logged out shows nothing, and no answer is an error./proc. It reads only the name (-n) and the WebSocket address (-w). The soloist API key that is on the same command line is skipped and never kept, shown or logged (tested). It shows a warning when soloist's WebSocket is open to the whole network.websockets(pyproject.toml and uv.lock, written with uv 0.12.23). It is imported only inside the functions that use it, so the plugin still imports quickly. No other open PR changes these files.LibrespotErroris renamedPlayerError.Area
plugins/librespot_client (
src/paperpi/plugins/librespot_client/,tests/test_librespot_client.py) and ci (pyproject.toml,uv.lock, for the new dependency).Tests
tests/test_librespot_client.py. They cover:websocketsserver on a free port/procparsing, including a test that the-kkey never appears in the resultportstill meaning go-librespot.uv run pytestpasses: 2507 passed on develpi-4 (Pi, Python 3.13)uv run ruff check .passes (andruff format --check)Images
No layout changed; the example pictures are the same. The visible difference is the sharper cover from the 2000 px picture.
Review
Only txoof approves and merges this PR.
🤖 Generated with Claude Code