Skip to content

Commit fe189e4

Browse files
unhappychoiceclaude
andcommitted
feat(fetcher): add lastfm_charts
Last sibling of the `lastfm_*` batch: Last.fm's global "right now" chart of top artists or top tracks across every scrobble. The Last.fm slot in the `*_trending` family alongside `crypto_trending` / `huggingface_trending` / `wikipedia_trending` / `reddit_trending`. Options: `kind = "artists" | "tracks"` (default `artists`), `limit` (1..=50, default 10). No `user`, no `period` — `chart.*` endpoints don't carry either. Shapes (7): LinkedTextBlock (default) / ImageLinkedList / TextBlock / Text / MarkdownTextBlock / Entries / Bars. Matches the `huggingface_trending` shape table exactly. Deliberately drops Ratio / NumberSeries / Badge / Timeline: those carry user-binding semantics ("your top share", "your daily activity") that don't apply to a world-wide chart, and including them with stand-in values would read as fake. Per-kind branching lives inside `fetch_rows` (one endpoint per kind, each with its own DTO since Last.fm's `chart.getTopArtists` returns naked artists while `chart.getTopTracks` nests `{artist: {name}}` — same shape difference as the `user.getTop*` siblings). Closes the lastfm_* batch — 5 fetchers across one PR, sharing the `client.rs` + `common.rs` + `top.rs` scaffold introduced earlier in the branch. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent ecb519b commit fe189e4

2 files changed

Lines changed: 480 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)