feat: add autoplay suggestions when queue runs out
Some checks failed
Build for Windows / build-windows (push) Has been cancelled

This commit is contained in:
joren
2026-03-30 23:14:43 +02:00
parent 2da934f3f6
commit cfd91f96b5
11 changed files with 208 additions and 0 deletions

View File

@@ -471,6 +471,24 @@ impl QobuzClient {
Self::check_response(resp).await
}
pub async fn get_dynamic_suggestions(
&self,
limit: u32,
listened_tracks_ids: Value,
tracks_to_analyze: Value,
) -> Result<Value> {
let resp = self
.post_request("dynamic/suggest")
.json(&serde_json::json!({
"limit": limit,
"listened_tracks_ids": listened_tracks_ids,
"track_to_analysed": tracks_to_analyze,
}))
.send()
.await?;
Self::check_response(resp).await
}
async fn search_tracks(
&self,
query: &str,