This commit is contained in:
max 2023-02-07 08:59:27 -06:00
parent dffe76592b
commit 761426f638

View File

@ -3,7 +3,7 @@ import os
def __spotdlHelper(): def __spotdlHelper():
path = "/path/to/your/music/folder" path = "/path/to/your/music/folder"
format = "mp3" format = "mp3"
config = '--path-template "' + path + '/{artist}/{album}/{title} - {artist}.{ext}" --output-format ' + format config = f"--path-template {path} /{{artist}}/{{album}}/{{title}} - {{artist}}.{{ext}} --output-format {format}"
cmd = 'spotdl' cmd = 'spotdl'
@ -16,7 +16,7 @@ def __spotdlHelper():
print('The spotify array is empty! Edit spotDLHelper.py and add your urls.') print('The spotify array is empty! Edit spotDLHelper.py and add your urls.')
for url in spotify: for url in spotify:
os.system(cmd + " " + url + " " + config) os.system(f"{cmd} {url} {config}")
if __name__ == "__main__": if __name__ == "__main__":
__spotdlHelper() __spotdlHelper()