spotify-downloader icon indicating copy to clipboard operation
spotify-downloader copied to clipboard

Add two way sync with playlist

Open mybuntu-git2 opened this issue 2 years ago • 1 comments

Requested Feature

Create a spotdl sync_remove command to remove tracks from playlists in Spotify, through api.

I know this can be done by having spotdl check the songs directory if it contains all music, but such setup forces us to make a massive scan every time and creates dependencies with other systems (music streamers, beets, antivirus, mounts, cached files) which I’d like to keep separate

Possible implementation

This will enable the following process flow: Spotdl sync saves and overwrite .spotdl playlist file (existing functionality) spotdl sync downloads the content and pipes results to a log (existing functionality) with awk we gather the list of downloaded songs and remove them from the playlist (I deliver the code in shell) with the new command we sync_remove them from the Spotify playlist, keeping in the Spotify playlist the tracks that were not found.

This also makes the Spotify playlist usable by a sequence of downloaders, e.g. at 1AM we sync with spotdl, we expunge what is found, the rest is fed to lidarr at 2AM.

If this is set up I can also post a working spotdl_sync_remove.sh shell code that everyone can save in crontab as well as the script for the scenario above (including lidarr-prowlarr docker if required)

with this setup, whenever I open Spotify I can clearly see what has been found already and what instead has not been found, and is undergoing a more extensive search.

There are hints to the api call here: Link

mybuntu-git2 avatar Nov 09 '23 12:11 mybuntu-git2

This issue has been automatically marked stale because there hasn't been any activity for the last 30 days.

stale[bot] avatar Dec 15 '23 04:12 stale[bot]