From d272f602d834dd77f3e3108a1fd478504252fab4 Mon Sep 17 00:00:00 2001 From: uh wot Date: Sun, 10 Oct 2021 21:30:23 +0200 Subject: [PATCH] added array_default param for smaller deezer API responses --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b6651f7..cca9706 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,7 @@ async fn get_url(req: Json, state_data: &State> client = state_data_read.client.clone(); } - let resp: Result = client.api_call("song.getListData", &json!({"sng_ids":req.ids})).await; + let resp: Result = 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,