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
@@ -30,6 +30,13 @@ pub struct QueueTrack {
|
||||
pub album_id: Option<String>,
|
||||
/// Artist ID for navigation (Qobuz artist ID)
|
||||
pub artist_id: Option<u64>,
|
||||
/// Whether the track is streamable on Qobuz (false = removed/unavailable)
|
||||
#[serde(default = "default_streamable")]
|
||||
pub streamable: bool,
|
||||
}
|
||||
|
||||
fn default_streamable() -> bool {
|
||||
true // Default to true for backwards compatibility with existing queue data
|
||||
}
|
||||
|
||||
/// Repeat mode options
|
||||
|
||||
Reference in new issue
Block a user