From 59f64968e5ff4aee90cc1e26c833823ff857fe2a Mon Sep 17 00:00:00 2001 From: 0xf4b1 <10889432+0xf4b1@users.noreply.github.com> Date: Sun, 24 Dec 2023 19:22:15 +0100 Subject: [PATCH] spotify: increase fetch limit to 50 --- src/main/kotlin/sources/Spotify.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/sources/Spotify.kt b/src/main/kotlin/sources/Spotify.kt index 8fe161c..2d37eab 100644 --- a/src/main/kotlin/sources/Spotify.kt +++ b/src/main/kotlin/sources/Spotify.kt @@ -212,10 +212,10 @@ class Spotify : ISource { companion object { private const val BASE_URL = "https://api.spotify.com/v1" private const val QUERY_URL = "$BASE_URL/search?q=%s&type=track" - private const val USERS_SAVED_TRACKS_URL = "$BASE_URL/me/tracks" - private const val USERS_FOLLOWING = "$BASE_URL/me/following?type=artist" + private const val USERS_SAVED_TRACKS_URL = "$BASE_URL/me/tracks?limit=50" + private const val USERS_FOLLOWING = "$BASE_URL/me/following?type=artist&limit=50" private const val ARTIST_TRACKS = "$BASE_URL/artists/%s/top-tracks?market=US" - private const val USERS_PLAYLISTS = "$BASE_URL/me/playlists" + private const val USERS_PLAYLISTS = "$BASE_URL/me/playlists?limit=50" private const val RELEASE_RADAR_URL = "$BASE_URL/search?q=Release-Radar&type=playlist&limit=1" private const val PLAYLIST_URL = "$BASE_URL/playlists/%s" }