feat(tracks): add streamable field infrastructure for unavailable tracks
Adds streamable field throughout the stack to detect tracks that have been removed from Qobuz but still appear in playlists/favorites: Backend (Rust): - QueueTrack: add streamable field with default true - PersistedQueueTrack: add streamable for session persistence - radio.rs: log warning when non-streamable track is encountered Frontend: - BackendQueueTrack: add streamable? field - QobuzTrack, Track, PlaylistTrack types: add streamable - qobuzAdapters.ts: include streamable in track conversions - trackActions.ts: all queue builders now include streamable - +page.svelte: debug logging includes streamable field This prepares the infrastructure for graying out unavailable tracks in the UI (to be implemented when we can reproduce the issue). Refs: User report about "Failed to fetch audio" for removed tracks
This commit is contained in:
1 parent
7ce5b402c4
commit
10788f877f
8 files changed
+79
-5
No files matched your search
@@ -346,7 +346,8 @@ export function convertQobuzAlbum(album: QobuzAlbum): AlbumDetail {
|
||||
samplingRate: track.maximum_sampling_rate,
|
||||
albumId: album.id,
|
||||
artistId: track.performer?.id ?? album.artist?.id,
|
||||
isrc: track.isrc
|
||||
isrc: track.isrc,
|
||||
streamable: track.streamable ?? true
|
||||
})) || [],
|
||||
upc: album.upc
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user