fix(queue): add album_id and artist_id to all view queue builders
Complete propagation in all view components: - HomeView: buildContinueQueueTracks - FavoritesView: buildFavoritesQueueTracks - SearchView: buildSearchQueueTracks - LocalLibraryView: setQueueForLocalTracks (local=true, null IDs) - ArtistDetailView: buildTopTracksQueue
This commit is contained in:
1 parent
1684df7752
commit
5eb1b392e8
5 files changed
+15
No files matched your search
@@ -430,6 +430,9 @@
|
|||||||
hires: t.hires_streamable ?? false,
|
hires: t.hires_streamable ?? false,
|
||||||
bit_depth: t.maximum_bit_depth ?? null,
|
bit_depth: t.maximum_bit_depth ?? null,
|
||||||
sample_rate: t.maximum_sampling_rate ?? null,
|
sample_rate: t.maximum_sampling_rate ?? null,
|
||||||
|
is_local: false,
|
||||||
|
album_id: t.album?.id || null,
|
||||||
|
artist_id: t.performer?.id ?? null,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -743,6 +743,9 @@
|
|||||||
hires: t.hires ?? false,
|
hires: t.hires ?? false,
|
||||||
bit_depth: t.maximum_bit_depth ?? null,
|
bit_depth: t.maximum_bit_depth ?? null,
|
||||||
sample_rate: t.maximum_sampling_rate ?? null,
|
sample_rate: t.maximum_sampling_rate ?? null,
|
||||||
|
is_local: false,
|
||||||
|
album_id: t.album?.id || null,
|
||||||
|
artist_id: t.performer?.id ?? null,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -374,6 +374,9 @@
|
|||||||
hires: t.hires ?? false,
|
hires: t.hires ?? false,
|
||||||
bit_depth: t.bitDepth ?? null,
|
bit_depth: t.bitDepth ?? null,
|
||||||
sample_rate: t.samplingRate ?? null,
|
sample_rate: t.samplingRate ?? null,
|
||||||
|
is_local: t.isLocal ?? false,
|
||||||
|
album_id: t.albumId || null,
|
||||||
|
artist_id: t.artistId ?? null,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1168,6 +1168,9 @@
|
|||||||
hires: (t.bit_depth && t.bit_depth > 16) || t.sample_rate > 44100,
|
hires: (t.bit_depth && t.bit_depth > 16) || t.sample_rate > 44100,
|
||||||
bit_depth: t.bit_depth ?? null,
|
bit_depth: t.bit_depth ?? null,
|
||||||
sample_rate: t.sample_rate ?? null,
|
sample_rate: t.sample_rate ?? null,
|
||||||
|
is_local: true,
|
||||||
|
album_id: null, // Local tracks don't have Qobuz IDs
|
||||||
|
artist_id: null,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
console.log('[LocalLibrary Queue] Mapped to', queueTracks.length, 'queue tracks');
|
console.log('[LocalLibrary Queue] Mapped to', queueTracks.length, 'queue tracks');
|
||||||
|
|||||||
@@ -402,6 +402,9 @@
|
|||||||
hires: t.hires_streamable ?? false,
|
hires: t.hires_streamable ?? false,
|
||||||
bit_depth: t.maximum_bit_depth ?? null,
|
bit_depth: t.maximum_bit_depth ?? null,
|
||||||
sample_rate: t.maximum_sampling_rate ?? null,
|
sample_rate: t.maximum_sampling_rate ?? null,
|
||||||
|
is_local: false,
|
||||||
|
album_id: t.album?.id || null,
|
||||||
|
artist_id: t.performer?.id ?? null,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user