mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #286] Remove one occurrence of track from playlist #159
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#159
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 @stavlocker on GitHub (May 9, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/286
Hello.
I'm currently making a script to remove duplicates and I'm trying to figure out a way to remove just one occurrence of a track from a playlist.
Currently there are only
user_playlist_remove_all_occurrences_of_tracksto remove all occurrences of a track, oruser_playlist_remove_specific_occurrences_of_trackswhich requires a specific position to be delivered as well.Is there a way to remove just one occurrence of a track from a playlist without having to loop through the list, finding a track that's the same as the one I'm looking for, grab it's position and use the specific occurrences method?
@ritiek commented on GitHub (May 17, 2018):
I don't think Remove Tracks from a Playlist has anything that does what you want to do but personally I think it would be a better idea to write a script (loop, find, grab, use specific occurrences method) than providing a new method specifically for what you're trying to do. Just my opinion though.