You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabled by Default: Yes (Disable via SUPERNOVA_PLUGIN_LASTFM=false)
Purpose
Handles OAuth authentication with Last.fm and manages background track scrobbling strictly according to Last.fm API guidelines.
Technical Internals
Authentication: Uses a pop-up callback flow (/api/plugins/lastfm/auth-url). It securely exchanges the temporary token for a persistent session key stored in the user's browser localStorage.
State Management: The frontend PlayerContext tracks the exact accumulatedPlayTimeRef for the active track.
Scrobble Rules: A scrobble request is ONLY fired to /api/plugins/lastfm/scrobble if:
The user has listened to at least 50% of the track's duration.
OR the user has listened for 4 continuous minutes.
Security: The callback URLs and API keys are strictly url.QueryEscape'd to prevent parameter injection attacks.