ID support for current_user_unfollow_playlist() (#1143)

* ID support for `current_user_unfollow_playlist()`

* turned double quotes into single quotes

* Clarified changelog entry
This commit is contained in:
JackDyre authored and GitHub committed 2024-06-30 21:34:14 +02:00
1 parent 66ad716595
commit 1e05bdba67
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ Add your changes below.
### Fixed
- Audiobook integration tests
- Edited docstrings for certain functions in client.py for functions that are no longer in use and have been replaced.
- `current_user_unfollow_playlist()` now supports playlist IDs, URLs, and URIs rather than previously where it only supported playlist IDs.
### Removed
- `mock` no longer listed as a test dependency. Only built-in `unittest.mock` is actually used.
+2 -2
View File
@@ -1096,10 +1096,10 @@ class Spotify:
user
Parameters:
- name - the name of the playlist
- playlist_id - the id of the playlist
"""
return self._delete(
f"playlists/{playlist_id}/followers"
f"playlists/{self._get_id('playlist', playlist_id)}/followers"
)
def playlist_add_items(