Add daily play counts to the song detail endpoint

Scopes listen_counts() to a single artist/track, the same way
recent() was scoped for song history, so the song page can drive a
per-track activity chart over the last 90 days.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
mattandClaude Sonnet 5 committed 2026-10-05 15:33:06 +01:00
1 parent bef41fc2cc
commit 86bf9fd302
5 files changed
+37 -2

No files matched your search

+7
View File
@@ -3918,6 +3918,13 @@
"items": {
"$ref": "#/components/schemas/Scrobble"
}
},
"counts": {
"type": "array",
"description": "Daily plays over the last 90 days",
"items": {
"$ref": "#/components/schemas/Count"
}
}
},
"additionalProperties": false