From d001326cc38ff17ec1a7d136c4f1b94e37142b58 Mon Sep 17 00:00:00 2001 From: Rob Sanek Date: Tue, 2 Mar 2021 10:41:14 -0800 Subject: [PATCH] Allow both id types in playlist_change_details (#649) --- CHANGELOG.md | 2 +- spotipy/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfb835b..636c35c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -// Add your changes here and then delete this line +- Enabled using both short and long IDs for playlist_change_details ## [2.17.1] - 2021-02-28 diff --git a/spotipy/client.py b/spotipy/client.py index e5bc0e7..95e2aa7 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -996,7 +996,7 @@ class Spotify(object): if isinstance(description, six.string_types): data["description"] = description return self._put( - "playlists/%s" % (playlist_id), payload=data + "playlists/%s" % (self._get_id("playlist", playlist_id)), payload=data ) def current_user_unfollow_playlist(self, playlist_id):