Listening stats: Last.fm user.* methods and /api/v1/me
- 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
This commit is contained in:
1 parent
2702815a1e
commit
0d49311848
7 files changed
+769
-2
No files matched your search
@@ -43,9 +43,10 @@ def init_app(app: Flask) -> None:
|
||||
},
|
||||
)
|
||||
|
||||
from scrobbler.api import apps, auth, sessions, tokens
|
||||
from scrobbler.api import apps, auth, sessions, stats, tokens
|
||||
|
||||
api.register_blueprint(auth.blp, url_prefix="/api/v1/auth")
|
||||
api.register_blueprint(apps.blp, url_prefix="/api/v1/apps")
|
||||
api.register_blueprint(sessions.blp, url_prefix="/api/v1/sessions")
|
||||
api.register_blueprint(tokens.blp, url_prefix="/api/v1/tokens")
|
||||
api.register_blueprint(stats.blp, url_prefix="/api/v1/me")
|
||||
Reference in new issue
Block a user