Repository navigation
Commit ecb519b
feat(fetcher): add lastfm_top_albums
Third user-stats sibling: a user's top albums for a rolling window via
`user.getTopAlbums`. Same option contract (`user` / `period` / `limit`)
and same 10 shapes via the shared `lastfm/top.rs` surface.
Row mapping mirrors `lastfm_top_tracks` exactly — both endpoints return
`{name, playcount, artist: {name}, url, image, @attr: {rank}}` rows,
just under a different envelope key (`topalbums.album` vs
`toptracks.track`). Album titles surface as `"Album — Artist"` via the
shared secondary-label rendering.
Album artwork via the `image` array is the only practical difference at
the user-facing level: `ImageLinkedList` rows show the actual cover art
because Last.fm consistently populates `image` for albums (unlike tracks
where the array is often only the placeholder).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 407e13b commit ecb519b
2 files changed
Lines changed: 443 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
0 commit comments