mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #1099] playlist_reorder_items not working #656
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#656
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lucas992x on GitHub (May 5, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1099
Describe the bug
playlist_reorder_itemsis not working: code is executed without errors but tracks in playlist are not reordered.Your code
Minimal working example
Can be tested by inserting ID of any playlist you have permission to edit, just be sure that it contains enough tracks to perform the test (or change indexes). Includes other tools that work: description of playlist is modified and a track is added to it.
Expected behavior
playlist_reorder_itemsshould reorder playlist but this does not happenOutput
There is no output, command seems to be executed (is there something I should do to retrieve more information?)
Environments:
pip)python setup.py install)python setup.py install)Additional context
It was working some days ago, then it stopped all of a sudden.
@dieser-niko commented on GitHub (May 5, 2024):
I was able to replicate the bug in the interactive Web API Reference and it seems to do absolutely nothing.
As a workaround, you can use
Spotify.playlist_replace_items, but the functionality is a bit different. The URIs provided will replace the entire playlist, even though the function only supports up to 100 songs/episodes. However, if you provide URIs that are already in the playlist, it will count as reordered.Probably related to: https://github.com/spotipy-dev/spotipy/issues/1098
@lucas992x commented on GitHub (May 6, 2024):
I tried
playlist_replace_itemsand it works, thank you for the advice! Unfortunately most of my playlists contain way more than 100 tracks, so I have to wait that Spotify fix the issue :(@jwatson-CO-edu commented on GitHub (May 6, 2024):
I am having the same issue. The authorization request
spotipy.util.prompt_for_user_tokendoes not cause any errors. I get the following response despite having correct permission in my token request.An example that was working as of 2 weeks ago can be found here.
@dieser-niko commented on GitHub (May 6, 2024):
@jwatson-CO-edu it doesn't seem like you're having the same problem. In our case, the API pretends to work, but nothing actually happens.
@lucas992x commented on GitHub (May 12, 2024):
Now
playlist_reorder_itemsworks again, I close the issue