diff --git a/CHANGELOG.md b/CHANGELOG.md index e602185..f9d46ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/spotipy/client.py b/spotipy/client.py index caaf9ca..61924a5 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -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(