diff --git a/CHANGELOG.md b/CHANGELOG.md index ca9b0bf..bf30846 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added extra installation step to TUTORIAL.md for required installation packages. - Added Troubleshooting Tips section to TUTORIAL.md to address common installation issues. - Added link to Spotipy Tutorial for Beginners under Getting Started. +- Added `update` field to `current_user_follow_playlist`. ### Changed - Changes the YouTube video link for authentication tutorial (the old video was in low definition, the new one is in high definition) diff --git a/spotipy/client.py b/spotipy/client.py index 50e1e19..d83053c 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1200,7 +1200,7 @@ class Spotify: f"playlists/{plid}/tracks", payload=payload ) - def current_user_follow_playlist(self, playlist_id): + def current_user_follow_playlist(self, playlist_id, public=True): """ Add the current authenticated user as a follower of a playlist. @@ -1209,7 +1209,8 @@ class Spotify: """ return self._put( - f"playlists/{playlist_id}/followers" + f"playlists/{playlist_id}/followers", + payload={"public": public} ) def playlist_is_following(