From eb7830f303dac373df92be5dcfa14d2d604db6c3 Mon Sep 17 00:00:00 2001 From: tonarec <23620541+tonarec@users.noreply.github.com> Date: Wed, 18 Feb 2026 19:13:10 +0100 Subject: [PATCH] #1227 - Formatted code and updated changelog --- CHANGELOG.md | 5 +++++ spotipy/client.py | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2865cdd..57aee0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Add your changes below. ### Added +- Created generic methods to get user saved items ### Fixed +- Updated `/tracks` endpoints to `/items` +- Switching IDs to URIs to use `/me/library` endpoint +- Fixed playlist limit to 50 (according to API) +- Added warnings for deprecated methods ### Removed diff --git a/spotipy/client.py b/spotipy/client.py index 42a0a1b..d4ae244 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -446,10 +446,10 @@ class Spotify: """ warnings.warn( - "You're using `artist_top_tracks(...)`, " - "which is marked as deprecated by Spotify.", - DeprecationWarning, - ) + "You're using `artist_top_tracks(...)`, " + "which is marked as deprecated by Spotify.", + DeprecationWarning, + ) trid = self._get_id("artist", artist_id) return self._get("artists/" + trid + "/top-tracks", country=country) @@ -1341,10 +1341,10 @@ class Spotify: "current_user_follow_playlist(...) instead.", DeprecationWarning, ) - + endpoint = f"playlists/{playlist_id}/followers/contains?ids={','.join(user_ids)}" return self._get(endpoint) - + def current_user_saved_items(self, uris): """ Check if the current user is following the given artists, users, or playlists