From 7337b7e026763db8199ce744ec9d681c05c64fd2 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 15 Feb 2026 20:36:47 -0600 Subject: [PATCH] fix(v2): match V2QueueTrack field names to frontend interface Remove serde rename attributes that caused mismatch: - Frontend sends 'duration_secs', backend expected 'duration' - Frontend sends 'artwork_url', backend expected 'artwork' Now V2QueueTrack field names match BackendQueueTrack exactly. --- src-tauri/src/commands_v2.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src-tauri/src/commands_v2.rs b/src-tauri/src/commands_v2.rs index 5892794af..587f77765 100644 --- a/src-tauri/src/commands_v2.rs +++ b/src-tauri/src/commands_v2.rs @@ -962,15 +962,14 @@ pub async fn v2_clear_queue( /// Queue track representation for V2 commands /// Maps to internal QueueTrack format +/// Field names match frontend BackendQueueTrack interface exactly #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct V2QueueTrack { pub id: u64, pub title: String, pub artist: String, pub album: String, - #[serde(rename = "duration")] pub duration_secs: u64, - #[serde(rename = "artwork")] pub artwork_url: Option, #[serde(default)] pub hires: bool,