mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #622] delete_a_saved_track example fails #371
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#371
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 @t0000 on GitHub (Dec 3, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/622
Hello
When executing the script, the track is not deleted from the saved tracks
https://github.com/plamere/spotipy/blob/2.16.1/examples/delete_a_saved_track.py
no error is output -> Process finished with exit code 0
Environment:
Python version [3.9.0]
spotipy version [2.16.1]
@stephanebruckert commented on GitHub (Dec 3, 2020):
Yes the file has an indent problem, just unindent the last 3 lines, they shouldn't be part of the "else"
@t0000 commented on GitHub (Dec 4, 2020):
with this code: https://pastebin.com/qCqC29M4
i get this error: https://pastebin.com/NhQQj58a
can you check that please? Regards
@t0000 commented on GitHub (Dec 5, 2020):
the solution is:
results = sp.current_user_saved_tracks_delete(tracks=[tids])
@stephanebruckert commented on GitHub (Dec 5, 2020):
@t0000 nice catch, thanks for the solution.
Just reopening this until we fix it through a PR