You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, even though items is formatted correctly, I'm receiving an error of " Could not remove tracks, please check parameters., reason: None" with playlist_remove_specific_occurrences_of_items
sp = get_authorized_spotify_client()
items = [{'uri': track['track']['id'], 'positions': [track['position']]} for track in tracks]
logging.info(f'{items=}')
sp.playlist_remove_specific_occurrences_of_items(playlist_id, items)
This will need to be done for each duplicate individually to ensure the order of songs isn't affected.
But if you don't care about the order, you can remove all the duplicates in one request (as you have been doing) and then add one of each back with one request. You can pass an array of tracks. See this example examples/add_tracks_to_playlist.py.
Hi, even though items is formatted correctly, I'm receiving an error of " Could not remove tracks, please check parameters., reason: None" with
playlist_remove_specific_occurrences_of_items
478D5udPmRAfuMvzUaDxNn
. What am I doing wrong? Items looks formatted as it is in the docs.The text was updated successfully, but these errors were encountered: