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:
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user