From 33275f574ee8af41b7edd582db78537c98ddbb25 Mon Sep 17 00:00:00 2001 From: pavelkomarov Date: Thu, 12 Sep 2024 14:41:08 -0700 Subject: [PATCH] done goofed. 100ms between subsequent playlist endpoint calls now --- exportify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exportify.js b/exportify.js index 8a87780..aae1663 100755 --- a/exportify.js +++ b/exportify.js @@ -66,7 +66,7 @@ class PlaylistTable extends React.Component { playlists.push(response.items) let requests = [] for (let offset = 50; offset < response.total; offset += 50) { - requests.push(utils.apiCall("https://api.spotify.com/v1/me/playlists?limit=50&offset=" + offset, this.props.access_token, 100*offset)) + requests.push(utils.apiCall("https://api.spotify.com/v1/me/playlists?limit=50&offset=" + offset, this.props.access_token, 2*offset)) } await Promise.all(requests).then(responses => responses.map(response => playlists.push(response.items)))