#Repeat "spotdl" command

9 messages · Page 1 of 1 (latest)

spiral bramble
#

When I download a playlist, some songs aren't downloaded due to different type of errors.
Running the download command multiple times allows me with brute force to get the missing songs (duplicates aren't a thing/problem because they are detected and the relative songs are skipped).
How can I make the spotdl command be executed say 5 times without opening the shell and typing it 5 times? Is there a preference I can tweak or a command to repeat others? thx

keen solarBOT
#
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.

#

@spiral bramble

spiral bramble
#

spotDL Version: 4.2.5
Operating System: Windows 22H2

granite bear
#

I use shell scripting

#

you can use batch or powershell for this on windows

#
@echo off
for /l %%x in (1,1,5) do (
    echo Running iteration %%x
    spotdl ...
)
pause
#

save this in a .bat file and double click

spiral bramble
#

👍