getting ready for wrapped season. fewer requests, fewer weird errors.
what's in it
- fixed "verification expired" errors that could randomly hit while loading your stats. parallel requests were tripping over the same turnstile token
- typos in usernames no longer make the server ask listenbrainz or last.fm the same question 10 times
- when last.fm is rate limiting us you now get a "busy, try again" message instead of being told your account doesn't exist
- the live counter polls half as often and stops while the tab is in the background
- last.fm calls are paced and shared between requests, so one page load doesn't fetch your top lists several times
- track lengths are saved and reused, which makes minutes listened faster and much lighter on last.fm and musicbrainz
- custom artwork in the api works in docker again. the sandbox couldn't start inside containers and returned a misleading invalid image error
for self hosters
docker compose pull && docker compose up -d
no required env changes. optional: LASTFM_MIN_INTERVAL (default 0.2, seconds between last.fm calls per box) and TRACK_LENGTH_MAX_ROWS (default 200000). track lengths live in data/track_lengths.db. you can raise gunicorn workers with WEB_CONCURRENCY if your box has room.
questions or bugs? come say hi on discord