mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 17:10:45 +00:00
#1227 - Formatted code and updated changelog
This commit is contained in:
1 parent
10294e18bc
commit
eb7830f303
2 files changed
+11
-6
No files matched your search
@@ -10,8 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
Add your changes below.
|
Add your changes below.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
- Created generic methods to get user saved items
|
||||||
|
|
||||||
### Fixed
|
### 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
|
### Removed
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -446,10 +446,10 @@ class Spotify:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"You're using `artist_top_tracks(...)`, "
|
"You're using `artist_top_tracks(...)`, "
|
||||||
"which is marked as deprecated by Spotify.",
|
"which is marked as deprecated by Spotify.",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
)
|
)
|
||||||
trid = self._get_id("artist", artist_id)
|
trid = self._get_id("artist", artist_id)
|
||||||
return self._get("artists/" + trid + "/top-tracks", country=country)
|
return self._get("artists/" + trid + "/top-tracks", country=country)
|
||||||
|
|
||||||
@@ -1341,10 +1341,10 @@ class Spotify:
|
|||||||
"current_user_follow_playlist(...) instead.",
|
"current_user_follow_playlist(...) instead.",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
)
|
)
|
||||||
|
|
||||||
endpoint = f"playlists/{playlist_id}/followers/contains?ids={','.join(user_ids)}"
|
endpoint = f"playlists/{playlist_id}/followers/contains?ids={','.join(user_ids)}"
|
||||||
return self._get(endpoint)
|
return self._get(endpoint)
|
||||||
|
|
||||||
def current_user_saved_items(self, uris):
|
def current_user_saved_items(self, uris):
|
||||||
"""
|
"""
|
||||||
Check if the current user is following the given artists, users, or playlists
|
Check if the current user is following the given artists, users, or playlists
|
||||||
|
|||||||
Reference in new issue
Block a user