navidrome/core/playback
fossisawesome-macbook-with-linux ad9db704d1 fix(jukebox): scrobble and count plays for jukebox playback
Jukebox playback happens entirely server-side via mpv, so the client
never calls the reportPlayback endpoint that normally drives play
counts and scrobbling. As a result, songs played through jukebox mode
were never scrobbled and never incremented their play count.

Thread the existing scrobbler.PlayTracker into the playback device and
report StateStarting/StateStopped transitions at the same points a
client-driven session would: on track start, on skip, on clear, and on
natural end-of-track. The async track-switcher goroutine has no HTTP
request of its own, so the acting user/player/client are captured from
the last jukebox request and carried on the device's long-lived
context for it to use.

Fixes #5693
2026-07-04 23:39:35 -04:00
..
mpv refactor: more warnings clean up 2026-05-20 17:43:12 -03:00
device.go fix(jukebox): scrobble and count plays for jukebox playback 2026-07-04 23:39:35 -04:00
playback_suite_test.go Jukebox mode (#2289) 2023-09-10 11:25:22 -04:00
playbackserver.go fix(jukebox): scrobble and count plays for jukebox playback 2026-07-04 23:39:35 -04:00
queue.go refactor: run Go modernize (#5002) 2026-02-08 09:57:30 -05:00
queue_test.go Jukebox mode (#2289) 2023-09-10 11:25:22 -04:00