diff --git a/spotDLHelper.py b/spotDLHelper.py index 5b9eeef..767a531 100644 --- a/spotDLHelper.py +++ b/spotDLHelper.py @@ -3,7 +3,7 @@ import os def __spotdlHelper(): path = "/path/to/your/music/folder" 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' @@ -16,7 +16,7 @@ def __spotdlHelper(): print('The spotify array is empty! Edit spotDLHelper.py and add your urls.') for url in spotify: - os.system(cmd + " " + url + " " + config) + os.system(f"{cmd} {url} {config}") if __name__ == "__main__": __spotdlHelper()