From ca207e4f2d6e221e464e9d8ad5abc09a47ca0aeb Mon Sep 17 00:00:00 2001 From: Michael Rossetti Date: Sun, 12 Jan 2025 10:42:56 -0500 Subject: [PATCH] Update docs for `current_user_top_artists` (#1171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update docs Add maximum value for limit parameter. See: https://developer.spotify.com/documentation/web-api/reference/get-users-top-artists-and-tracks * Update CHANGELOG.md --------- Co-authored-by: Stéphane Bruckert --- CHANGELOG.md | 1 + spotipy/client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb0f2d..e639413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Add your changes below. ### Fixed - Fixed scripts in examples directory that didn't run correctly +- Updated documentation for `Client.current_user_top_artists` to indicate maximum number of artists limit ### Removed diff --git a/spotipy/client.py b/spotipy/client.py index 9261f23..8978058 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1497,7 +1497,7 @@ class Spotify: """ 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