Add ListenBrainz support - #1
Open
bradsk88 wants to merge 4 commits into
Open
Conversation
added 4 commits
August 9, 2026 21:49
Scrobbling now goes through a small target interface (connect/disconnect/ nowPlaying/scrobble). Last.fm is refactored into lib/scrobblers/lastfm.js with unchanged behavior; the new listenbrainz target speaks the ListenBrainz submit-listens protocol to a user-configured server, intended for self-hosted Multi-Scrobbler instances. - settings UI: scrobble target dropdown (Last.fm stays default), server URL + token fields with eager validation on connect - validation uses an empty playing_now probe rather than validate-token, which Multi-Scrobbler answers 200/valid even for wrong tokens - design docs: CONTEXT.md glossary + ADRs 0001-0003
- connect() treats Koito's 400 'payload is nil' as auth success: Koito's
auth middleware runs before the payload check, so that 400 proves the
token was accepted (bad tokens get 401)
- normaliseBaseUrl strips pasted /1 or /1/submit-listens suffixes, since
Koito documents {host}/apis/listenbrainz/1 as the base URL
bradsk88
commented
Aug 9, 2026
| </div> | ||
|
|
||
| <div class="panel-title">Last.fm</div> | ||
| <div class="panel-title">Scrobbling</div> |
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.


This is a cool project. But I personally prefer self-hosted over last.fm.
This PR adds the ability to choose that. I tested it with Koito.