mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #416] Client method to sync playlist content efficiently using multible api calls. #136
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#136
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 @blueforesticarus on GitHub (May 26, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/416
Is your feature request related to a problem? Please describe.
I am working on a program which synchronizes spotify playlists. For this I often need to make the content of a playlist equal to a list of tracks. Similar issue to #296.
Describe the solution you'd like
A client function that replaces the content of a playlist with a list of tracks. (using the minimum number of inserts and deletes).
Describe alternatives you've considered
You can of course clear the playlist and add all the tracks, but for large playlists it is very slow as only 100 items can be added per API call. This could reasonably mean 30+ api calls, even when you are only adding/deleting a few things.
Additional context
I actually already have to write this logic (I am porting this function from this project).
Is this something you would be interested in me upstreaming?
@blueforesticarus commented on GitHub (May 26, 2023):
This is essentially the logic part btw
github.com/blueforesticarus/goontunes2@034994bffb@github-actions[bot] commented on GitHub (Nov 23, 2023):
Message to comment on stale issues. If none provided, will not mark issues stale
@github-actions[bot] commented on GitHub (Nov 27, 2025):
Message to comment on stale issues. If none provided, will not mark issues stale