From cf584aa1b2b0c7a1e9b3bef6971a60189c4ffacf Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 9 Jan 2026 16:44:37 -0600 Subject: [PATCH] fix(playlists): include tracks in playlist fetch --- src-tauri/src/api/client.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/api/client.rs b/src-tauri/src/api/client.rs index 601bbd1a2..723084187 100644 --- a/src-tauri/src/api/client.rs +++ b/src-tauri/src/api/client.rs @@ -307,15 +307,21 @@ impl QobuzClient { /// Get playlist by ID pub async fn get_playlist(&self, playlist_id: u64) -> Result { let url = endpoints::build_url(paths::PLAYLIST_GET); - let response: Value = self + let mut request = self .http .get(&url) .header("X-App-Id", self.app_id().await?) - .query(&[("playlist_id", playlist_id.to_string()), ("limit", "500".to_string())]) - .send() - .await? - .json() - .await?; + .query(&[ + ("playlist_id", playlist_id.to_string()), + ("limit", "500".to_string()), + ("extra", "tracks".to_string()), + ]); + + if let Ok(token) = self.auth_token().await { + request = request.header("X-User-Auth-Token", token); + } + + let response: Value = request.send().await?.json().await?; Ok(serde_json::from_value(response)?) }