feat: restore most-popular search and top results badges
Some checks failed
Build for Windows / build-windows (push) Has been cancelled

This commit is contained in:
joren
2026-03-30 22:53:41 +02:00
parent 3346b424b3
commit 2da934f3f6
7 changed files with 134 additions and 1 deletions

View File

@@ -453,6 +453,24 @@ impl QobuzClient {
})
}
pub async fn get_most_popular(
&self,
query: &str,
offset: u32,
limit: u32,
) -> Result<Value> {
let resp = self
.get_request("most-popular/get")
.query(&[
("query", query.to_string()),
("offset", offset.to_string()),
("limit", limit.to_string()),
])
.send()
.await?;
Self::check_response(resp).await
}
async fn search_tracks(
&self,
query: &str,