feat: add autoplay suggestions when queue runs out
Some checks failed
Build for Windows / build-windows (push) Has been cancelled
Some checks failed
Build for Windows / build-windows (push) Has been cancelled
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user