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 2024-06-30 14:34:14 -05:00 committed by GitHub
parent 66ad716595
commit 1e05bdba67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ Add your changes below.
### Fixed ### Fixed
- Audiobook integration tests - Audiobook integration tests
- Edited docstrings for certain functions in client.py for functions that are no longer in use and have been replaced. - 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 ### Removed
- `mock` no longer listed as a test dependency. Only built-in `unittest.mock` is actually used. - `mock` no longer listed as a test dependency. Only built-in `unittest.mock` is actually used.

View File

@ -1096,10 +1096,10 @@ class Spotify:
user user
Parameters: Parameters:
- name - the name of the playlist - playlist_id - the id of the playlist
""" """
return self._delete( return self._delete(
f"playlists/{playlist_id}/followers" f"playlists/{self._get_id('playlist', playlist_id)}/followers"
) )
def playlist_add_items( def playlist_add_items(