fix: restore albumId/artistId on session resume for player bar navigation

setCurrentTrack during session restore was missing albumId and artistId,
causing Go to Album / Go to Artist clicks to silently fail until a new
track was played. Also restore isLocal, source, and parental_warning for
full parity with the normal playback path.

Closes #252

cc
This commit is contained in:
vicrodh committed 2026-04-02 11:54:02 -06:00
1 parent 3ac7073b9c
commit 34a18093d0
1 file changed
+5
+5
View File
@@ -3559,6 +3559,11 @@
quality,
bitDepth: track.bit_depth ?? undefined,
samplingRate: track.sample_rate ?? undefined,
albumId: track.album_id ?? undefined,
artistId: track.artist_id ?? undefined,
isLocal: track.is_local ?? false,
source: track.source ?? 'qobuz',
parental_warning: track.parental_warning ?? false,
});
// Update MPRIS metadata so playerctl shows track info