feat: auto-skip unavailable tracks with user-friendly error
Backend: - Add TrackUnavailable error type for tracks removed from Qobuz - Validate stream URL response - detect missing URL with restrictions - Add SampleRestrictedByRightHolders to restriction check - Return specific error when track is unavailable vs quality unavailable Frontend: - Detect track unavailable errors in playTrack() - Show friendly toast: Track title is no longer available - Auto-skip to next track in queue after 500ms delay - Add i18n translations (en/es) for trackUnavailable message
This commit is contained in:
1 parent
3926209b0d
commit
e68c3128b6
6 files changed
+62
-2
No files matched your search
@@ -28,6 +28,9 @@ pub enum ApiError {
|
||||
#[error("No valid quality available for this track")]
|
||||
NoQualityAvailable,
|
||||
|
||||
#[error("Track {0} is no longer available on Qobuz")]
|
||||
TrackUnavailable(u64),
|
||||
|
||||
#[error("Network error: {0}")]
|
||||
NetworkError(#[from] reqwest::Error),
|
||||
|
||||
|
||||
Reference in new issue
Block a user