Credit: https://github.com/jgarte
This commit is contained in:
parent
dffe76592b
commit
761426f638
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user