Fix sendspin metadata sending wrong progress when paused (#3250)
authorPaulus Schoutsen <balloob@gmail.com>
Thu, 26 Feb 2026 15:30:41 +0000 (10:30 -0500)
committerGitHub <noreply@github.com>
Thu, 26 Feb 2026 15:30:41 +0000 (16:30 +0100)
commitfddbc223c4da39cd9248bd6319c3139c76701f65
treea686c780eb0cb283787b4d7f4ea4bacd342f1036
parenta950bfcf723e10ac45bca624a592e512b55f1d53
Fix sendspin metadata sending wrong progress when paused (#3250)

* Fix sendspin metadata sending wrong progress when paused

Two issues caused the progress bar in sendspin clients to show wildly
incorrect values (e.g. 795:54 / 04:23) after reconnecting to a paused
stream:

1. playback_speed was hardcoded to 1000 (normal) and never set to 0
   when paused, so the server kept advancing progress.

2. Used PlayerMedia.corrected_elapsed_time which always interpolates
   elapsed time regardless of playback state (adding hours of wall-
   clock time while paused).  Switched to Player.corrected_elapsed_time
   which only interpolates during PLAYING.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(sendspin): preserve metadata progress when paused

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Maxim Raznatovski <nda.mr43@gmail.com>
music_assistant/providers/sendspin/player.py