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:
1 parent
045cf24a61
commit
7337b7e026
1 file changed
+1
-2
@@ -962,15 +962,14 @@ pub async fn v2_clear_queue(
|
|||||||
|
|
||||||
/// Queue track representation for V2 commands
|
/// Queue track representation for V2 commands
|
||||||
/// Maps to internal QueueTrack format
|
/// Maps to internal QueueTrack format
|
||||||
|
/// Field names match frontend BackendQueueTrack interface exactly
|
||||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct V2QueueTrack {
|
pub struct V2QueueTrack {
|
||||||
pub id: u64,
|
pub id: u64,
|
||||||
pub title: String,
|
pub title: String,
|
||||||
pub artist: String,
|
pub artist: String,
|
||||||
pub album: String,
|
pub album: String,
|
||||||
#[serde(rename = "duration")]
|
|
||||||
pub duration_secs: u64,
|
pub duration_secs: u64,
|
||||||
#[serde(rename = "artwork")]
|
|
||||||
pub artwork_url: Option<String>,
|
pub artwork_url: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub hires: bool,
|
pub hires: bool,
|
||||||
|
|||||||
Reference in new issue
Block a user