diff --git a/exportify.js b/exportify.js index 4632344..c292b66 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, ((offset-50)/50)*100)) + requests.push(utils.apiCall("https://api.spotify.com/v1/me/playlists?limit=50&offset=" + offset, this.props.access_token, 2*offset-100)) } await Promise.all(requests).then(responses => responses.map(response => playlists.push(response.items)))