From 8db04fa52618108bc8d42cc78ac80b69e6a0c89b Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 5 May 2019 04:00:18 +1000 Subject: [PATCH] cleaned up --- bcao.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bcao.py b/bcao.py index 41c7b1d..debe218 100755 --- a/bcao.py +++ b/bcao.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 #BCAO - BandCamp Automatic Organiser -#copyright 2018 lynnear software babyyyyyyyyyyyy -#GPLv3 because why the fuck not +#copyright 2018-2019 @LynnearSoftware@fedi.lynnesbian.space +#Licensed under the GPLv3: https://www.gnu.org/licenses/gpl-3.0.html#content #input: a .zip from bandcamp #output: it organises it, adds cover art, puts it in the right place... @@ -154,13 +154,14 @@ if choice == "Custom...": # print("Setting artist to {0}".format(choice)) artist = choice -mPath = "/home/lynne/Music/Music/{0}/{1}".format(artist, album) #todo: don't hardcode this +mPath = "/home/lynne/Music/Music/{}/{}".format(artist, album) #todo: don't hardcode this subprocess.check_output(["mkdir", "-p", mPath]) for root, dirs, filez in os.walk(tmp): for file in filez: #for every file subprocess.check_output(["mv", root + os.sep + file, mPath + os.sep + file]) +print("Deleting {}...".format(tmp)) subprocess.check_output(["rm", "-rf", tmp]) print("Done!") \ No newline at end of file