2 Commits
Author SHA1 Message Date
mattandClaude Sonnet 5 ea6b10637e Core: listening stats over an explicit date window (phase 3, step 1)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m1s
CI / test (push) Successful in 2m5s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
scrobbler.services.stats gains scrobble_count_between, top_artists_between
and top_tracks_between, over [start, end) (start inclusive, end
exclusive) rather than a rolling period. The existing period-based
functions are re-expressed on the same _between() primitive instead of
duplicating the windowing logic.

These are for federation's weekly summaries (phase 3), which need a
fixed Monday-to-Sunday window rather than "N days back". No public API
changes; the Last.fm and /api/v1/me endpoints are unaffected (pinned by
a regression test).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
2026-09-26 11:34:08 +01:00
mattandClaude Opus 5.5 0d49311848 Listening stats: Last.fm user.* methods and /api/v1/me
CI / lint (push) Successful in 12s
CI / test (push) Successful in 30s
CI / notify (push) Successful in 5s
- Stats service shared by both APIs: recent scrobbles, top artists,
  albums and tracks over Last.fm periods, per-day/week/month counts
  (with empty days filled) and totals
- Case-insensitive grouping that displays the most common spelling
- user.getInfo, user.getRecentTracks (now playing first, from/to),
  user.getTopArtists/Albums/Tracks with Last.fm paging attributes
- /api/v1/me: now-playing, recent, top/{artists,albums,tracks},
  counts and summary

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
2026-09-25 14:05:20 +01:00