2.1 KiB
2.1 KiB
S006 fm commands on ListenBrainz
Built
Audit only; code was already on ListenBrainz (api.rs, covers.rs). Features and the fields they read from the adapter:
- Top lists (
fm top, ta/tab/tt): name, artist.name, playcount, url, image. - Recent / now playing: name, artist, album,
@attr.nowplaying, image, date. - Profile: name, playcount, artist/album/track counts,
registered.unixtime(first listen), week favourites. realname/country are absent and skipped silently (no empty labels). - Who Knows (wk/wkt/wka):
plays()by MBID first, then name; top 1000 only. - Chart, Pixel Jumble: album image via covers.rs chain. Lyrics: track name/artist, Deezer title search.
- Dashboard link (src/web/api.rs): link_account / unlink / linked_name.
- Dropped: listeners, global playcount, bio, tags (never shown by any card). Last.fm site only used for "Go to song" links.
- Text: topgg.md now says ListenBrainz.
grep -rni "audioscrobbler\|api_key\|LASTFM_API" srcfinds only unrelated keys (ZENSERP, STEAMGRIDDB, VIRUSTOTAL).
Checks
/fmwith a linked user shows now playing or last listen with cover./fm top artists weekly,monthly,yearly,overalleach show a list or "no stats yet" card.fm profileshows listens, counts, "Listening since" date, no empty labels.fm recentlists 50 listens.wkin a server with 2 linked users ranks both.chart 3x3makes a collage with covers.pxstarts Pixel Jumble with a pixelated cover.lyricswith no args uses the current song.fmset nosuchuserxyzgives "There's no ListenBrainz user with that name."- Dashboard: set and clear ListenBrainz name works.
- Live:
cargo test listenbrainz_live -- --ignored.
Doubts
- Not run anywhere; only compile-checked. Fresh users with 204 (stats not ready) show an empty list, not a dedicated card message (not verified).
Results (S010, 2026-12-01)
- 1-10: not run: need Discord and linked accounts (owner, S011). 11: not run: needs internet (
listenbrainz_live, owner say-so). - Checked here:
rg -i "audioscrobbler|LASTFM_API" srcfinds no Last.fm API use; api.rs sample-JSON tests pass incargo test.