From a4197e474d95442baa74d5b906d06d8181f46ab7 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 17 Apr 2016 12:04:24 +0200 Subject: [PATCH] Get 50 playlists at once instead of 20. --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 2e9be08..163fbfe 100644 --- a/app.js +++ b/app.js @@ -135,7 +135,9 @@ app.get('/get_playlists', function (req, res) { var access_token = req.query.access_token; var next = req.query.next; var authOptions = { - url: next ? next : 'https://api.spotify.com/v1/me/playlists', + url: next ? next : 'https://api.spotify.com/v1/me/playlists?' + querystring.stringify({ + limit: 50 + }), headers: {'Authorization': 'Bearer ' + access_token}, json: true };