fix(qconnect): fix Play Next blocked by missing source field and admission handoff
Root cause: inline BackendQueueTrack constructions in +page.svelte were missing the 'source' field, causing resolveQconnectTrackOrigin to return 'external_unknown' which the admission system blocks. Fix adds source:'qobuz' and streamable to all three inline track constructions (album play next, playlist play next, album detail play next). Also restructures queueTrackNext and queueTrackLater to use a useLocalFallback flag when admission rejects with handoff_intent='continue_locally', so the track actually gets queued locally instead of silently failing.
This commit is contained in:
2 files changed
+85
-65
No files matched your search
@@ -1298,7 +1298,9 @@
|
||||
sample_rate: trk.samplingRate ?? null,
|
||||
is_local: false,
|
||||
album_id: album.id,
|
||||
artist_id: trk.artistId ?? album.artistId
|
||||
artist_id: trk.artistId ?? album.artistId,
|
||||
streamable: trk.streamable ?? true,
|
||||
source: 'qobuz'
|
||||
}, false, { silent: true });
|
||||
if (queued) {
|
||||
queuedCount += 1;
|
||||
@@ -1517,7 +1519,9 @@
|
||||
sample_rate: trk.maximum_sampling_rate ?? null,
|
||||
is_local: false,
|
||||
album_id: trk.album?.id,
|
||||
artist_id: trk.performer?.id
|
||||
artist_id: trk.performer?.id,
|
||||
streamable: true,
|
||||
source: 'qobuz'
|
||||
}, false, { silent: true });
|
||||
if (queued) {
|
||||
queuedCount += 1;
|
||||
@@ -2241,7 +2245,9 @@
|
||||
sample_rate: trk.samplingRate ?? null,
|
||||
is_local: false,
|
||||
album_id: album.id,
|
||||
artist_id: trk.artistId ?? album.artistId
|
||||
artist_id: trk.artistId ?? album.artistId,
|
||||
streamable: trk.streamable ?? true,
|
||||
source: 'qobuz'
|
||||
}, false, { silent: true });
|
||||
if (queued) {
|
||||
queuedCount += 1;
|
||||
|
||||
Reference in new issue
Block a user