added array_default param for smaller deezer API responses

This commit is contained in:
uh wot 2021-10-10 21:30:23 +02:00
parent ba3faf06cf
commit d272f602d8
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 1 additions and 1 deletions

View File

@ -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,