mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
#1227 - Formatted code and updated changelog
This commit is contained in:
parent
10294e18bc
commit
eb7830f303
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user