spotDLHelper/spotDLHelper.py

23 lines
587 B
Python
Raw Normal View History

2022-11-16 21:09:29 +00:00
import os
def __spotdlHelper():
path = "/path/to/your/music/folder"
format = "mp3"
2023-02-07 14:59:27 +00:00
config = f"--path-template {path} /{{artist}}/{{album}}/{{title}} - {{artist}}.{{ext}} --output-format {format}"
2022-11-16 21:09:29 +00:00
cmd = 'spotdl'
spotify = [
'https://open.spotify.com/artist/exampleurl',
'https://open.spotify.com/artist/exampleurl',
]
if not spotify:
print('The spotify array is empty! Edit spotDLHelper.py and add your urls.')
for url in spotify:
2023-02-07 14:59:27 +00:00
os.system(f"{cmd} {url} {config}")
2022-11-16 21:09:29 +00:00
if __name__ == "__main__":
__spotdlHelper()