#Mass downloading playlists with automated syncing

5 messages · Page 1 of 1 (latest)

sturdy dirge
#

Sup, chat. I have around 150 playlists that I want to save in subfolders for each playlist and them keep them updated along the way. Since I have so many of them it is cumbersome to 150 folders and then download playlists there one by one, I want to do it automatically. I want playlists to be downloaded into subfolders that are automatically generated based on the name of my playlists in spotify. And then I want to keep it in sync later.

Eecently I've discovered a sync function, and if it works then it will surely obliterate redundancy, but I still have to create a folder for each playlist... which is, well, you know?

Ideal solution would be a script that scans all my current playlists in spotify, then matches this info with the state of my local saves and folders and acts accordingly. Logic as follows:

  1. Parse through folders and subfolders in current folder. Check playlists, if there is a new playlist on spotify, then create subfolder for it on my PC an name it accordigly to spotify playlists. Matching playlists on spotify and local playlists done by comparing local folder name for playlist and name of playlists in spotify
  2. Use data from step one to know what exact path playlist is stored locally. So if I have path like D:/Playlists/Car playlists/Relaxed ride and i am running the script from playlists folder, the script will know that playlist Relaxed Ride is located under the car playlists folder.
  3. Sync playlists — delete obsolete songs, add new ones
  4. Go to the next playlists until finished

Is there any way that it is implemented already? Btw, donwload all playlists gives me this shii (see attached photo)

And also, is there any problem with using playlist folders in spotify for spotdl? I have nested structure of folders

icy lindenBOT
#
spotDL Support

Please continue adding more information into this thread.
You should include the following information:

spotDL Version

Eg. 4.0.0

Operating System

Eg. Windows 22H2

The Command You Ran

Please include Spotify links.

Screenshots or Pasted Error Messages

Only send these if they are relevant.

To send pasted error messages use three backticks (```)
Here's info on how to use code blocks.

#

@sturdy dirge

sturdy dirge
#

Spotdl version: 4.2.0
OS: Win 11 23H2

maiden crow
#

I'm not an expert making scripts but step 1-2-3 can be handled by spotdl commands.. by default, the sync function will check the specified folder for already present files, removes old songs and download new ones. Tho it can't pull new playlist by itself, you have to provide a link for each sync playlist you want, so typically you would do them 1 at a time but I don't see why it couldn't be done in bulk with scripts.

Check out the docs about syncing
It may take you a while to create each .spotdl file but then you can make a batch file that looks something like this:

spotdl sync "{PlaylistName}.sync.spotdl"  --output "D:\Media\Music\{PlaylistName}"

and run it at set interval using Task Scheduler
Or can you make a "master" batch file that will run them all either at the same time or one after the other (thats the part im not sure how to do, may wanna ask ChatGPT)