mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
Merge pull request #36 from mattduck/fix-fn-remove-specific-occurrences
Fix remove_specific_occurrences function
This commit is contained in:
commit
c804f38043
@ -374,7 +374,12 @@ class Spotify(object):
|
||||
'''
|
||||
|
||||
plid = self._get_id('playlist', playlist_id)
|
||||
ftracks = [ self._get_uri('track', tid) for tid in tracks]
|
||||
ftracks = []
|
||||
for tr in tracks:
|
||||
ftracks.append({
|
||||
"uri": self._get_uri("track", tr["uri"]),
|
||||
"positions": tr["positions"],
|
||||
})
|
||||
payload = { "tracks": ftracks }
|
||||
return self._delete("users/%s/playlists/%s/tracks" % (user, plid),
|
||||
payload = payload)
|
||||
|
Loading…
Reference in New Issue
Block a user