From 72bcd806adde20577adabcd1ef441491e16e3f55 Mon Sep 17 00:00:00 2001 From: Michael Rossetti Date: Tue, 26 Nov 2024 21:09:42 -0500 Subject: [PATCH 1/2] Update docs Add maximum value for limit parameter. See: https://developer.spotify.com/documentation/web-api/reference/get-users-top-artists-and-tracks --- spotipy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotipy/client.py b/spotipy/client.py index 61924a55..34bdd720 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1492,7 +1492,7 @@ def current_user_top_artists( """ Get the current user's top artists Parameters: - - limit - the number of entities to return + - limit - the number of entities to return (max 50) - offset - the index of the first entity to return - time_range - Over what time frame are the affinities computed Valid-values: short_term, medium_term, long_term From 5a0392b22afdd4dfe45d50165d783da736e4f237 Mon Sep 17 00:00:00 2001 From: Michael Rossetti Date: Thu, 28 Nov 2024 14:32:49 -0500 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86ebb8b9..0c594ff0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Add your changes below. - Added `personalized_playlist.py`, `track_recommendations.py`, and `audio_features_analysis.py` to `/examples`. - Discord badge in README - Added `SpotifyBaseException` and moved all exceptions to `exceptions.py` +- Updated documentation for `Client.current_user_top_artists` to indicate maximum number of artists limit ### Fixed - Audiobook integration tests