minor reformatting, configurable output dir
This commit is contained in:
parent
0ff526b5ca
commit
8cc483bfa8
1 changed files with 15 additions and 14 deletions
3
bcao.py
3
bcao.py
|
@ -33,6 +33,7 @@ except:
|
|||
parser = argparse.ArgumentParser(description = "BandCamp Automatic Organiser. Extracts the given zip file downloaded from Bandcamp and organises it.")
|
||||
parser.add_argument('zip', help='The zip file to use')
|
||||
# KEEP THESE IN ALPHABETICAL ORDER!
|
||||
parser.add_argument('-d', '--destination', dest='destination', default='/home/lynne/Music/Music/', help="The directory to organise the music into. Default: /home/lynne/Music/Music/")
|
||||
parser.add_argument('-q', '--quiet', dest='quiet', action='store_true', help='Disable non-error output')
|
||||
parser.add_argument('-t', '--threshold', dest='threshold', nargs=1, default=300, help="Maximum acceptable cover art file size in kilobytes. Default: 300")
|
||||
|
||||
|
@ -154,7 +155,7 @@ if choice == "Custom...":
|
|||
# print("Setting artist to {0}".format(choice))
|
||||
artist = choice
|
||||
|
||||
mPath = "/home/lynne/Music/Music/{}/{}".format(artist, album) #todo: don't hardcode this
|
||||
mPath = "{}/{}/{}".format(args.destination, artist, album)
|
||||
subprocess.check_output(["mkdir", "-p", mPath])
|
||||
|
||||
for root, dirs, filez in os.walk(tmp):
|
||||
|
|
Loading…
Reference in a new issue