fix(playback): give the now-playing "source" button a per-track context

The "playing from" button read a single global context set once at play time;
refresh_now_playing_meta never republished it, so it went stale across track
changes (previous track's album) and single-track plays fell back to the
current track's album instead of the playlist it came from. Add per-track
context_kind/context_id to QueueTrack (serde-default None, back-compat), stamp
the real container at every play path (album/artist/playlist/label), and
republish the context from the current track on EVERY track change (gapless
included) — never cached. open-context routes all stamped kinds.

cc
This commit is contained in:
vicrodh committed 2026-07-13 13:11:43 -06:00
1 parent a174e06119
commit b3d12e6b2c
11 files changed
+157 -33

No files matched your search

+2
View File
@@ -1258,6 +1258,8 @@ mod tests {
source: Some("test".to_string()),
parental_warning: false,
source_item_id_hint: None,
context_kind: None,
context_id: None,
}
}