added array_default param for smaller deezer API responses
This commit is contained in:
parent
ba3faf06cf
commit
d272f602d8
|
@ -53,7 +53,7 @@ async fn get_url(req: Json<RequestParams>, state_data: &State<RwLock<StateData>>
|
|||
client = state_data_read.client.clone();
|
||||
}
|
||||
|
||||
let resp: Result<DeezerTrackList, APIError> = client.api_call("song.getListData", &json!({"sng_ids":req.ids})).await;
|
||||
let resp: Result<DeezerTrackList, APIError> = client.api_call("song.getListData", &json!({"sng_ids":req.ids,"array_default":["SNG_ID","TRACK_TOKEN"]})).await;
|
||||
let track_list;
|
||||
match resp {
|
||||
Ok(t) => track_list = t,
|
||||
|
|
Loading…
Reference in New Issue