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.
This commit is contained in:
vicrodh committed 2026-02-15 20:36:47 -06:00
1 parent 045cf24a61
commit 7337b7e026
1 file changed
+1 -2
+1 -2
View File
@@ -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<String>,
#[serde(default)]
pub hires: bool,