From 3ae3d8cab1685aef600df085fb6befe251ca5deb Mon Sep 17 00:00:00 2001 From: Peter DeVita Date: Sat, 26 Dec 2020 02:46:58 -0500 Subject: [PATCH] Fix Spotify.user_playlist_reorder_items parameter order (#628) * Fix Spotify.user_playlist_reorder_items * Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ spotipy/client.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cda4df2..01df2f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support `market` optional parameter in `track` - Added CacheHandler abstraction to allow users to cache tokens in any way they see fit +### Fixed + +- Fixed Spotify.user_playlist_reorder_tracks calling Spotify.playlist_reorder_tracks with an incorrect parameter order + ## [2.16.1] - 2020-10-24 ### Fixed diff --git a/spotipy/client.py b/spotipy/client.py index 60e10b6..7f8553d 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -874,7 +874,7 @@ class Spotify(object): DeprecationWarning, ) return self.playlist_reorder_items(playlist_id, range_start, - range_length, insert_before, + insert_before, range_length, snapshot_id) def user_playlist_remove_all_occurrences_of_tracks(