From 761426f638d782b1fdfa148e51c4ccfeed7c7d5b Mon Sep 17 00:00:00 2001 From: max Date: Tue, 7 Feb 2023 08:59:27 -0600 Subject: [PATCH] Credit: https://github.com/jgarte --- spotDLHelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()