From dffe76592b027351e894500f9e83cc33172149af Mon Sep 17 00:00:00 2001 From: Maximilian Date: Wed, 16 Nov 2022 15:09:29 -0600 Subject: [PATCH] Initial commit --- spotDLHelper.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 spotDLHelper.py diff --git a/spotDLHelper.py b/spotDLHelper.py new file mode 100644 index 0000000..5b9eeef --- /dev/null +++ b/spotDLHelper.py @@ -0,0 +1,23 @@ +import os + +def __spotdlHelper(): + path = "/path/to/your/music/folder" + format = "mp3" + config = '--path-template "' + path + '/{artist}/{album}/{title} - {artist}.{ext}" --output-format ' + format + + 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: + os.system(cmd + " " + url + " " + config) + +if __name__ == "__main__": + __spotdlHelper() + \ No newline at end of file