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
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.
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
The text was updated successfully, but these errors were encountered: