| | |
| | | import subprocess |
| | | import shlex |
| | | import json |
| | | import getaaxkey.getaaxkey |
| | | |
| | | act_byte = "" |
| | | metadata = "" |
| | | mode = "chapter" |
| | | stats = "" |
| | | path = "" |
| | | args = "" |
| | | from getaaxkey.getaaxkey import getcorrectkey |
| | | |
| | | # arguments |
| | | # activation_key, file name, codec(default to mp3) |
| | | def processargs(): |
| | | |
| | | parser = argparse.ArgumentParser() |
| | | parser.add_argument("-s","--single", help="Use this option to create a single file. This is false by default", action="store_true") |
| | | parser.add_argument("-d","--dpath", help="Use this to set the destination path. Otherwise I will use the current directory") |
| | |
| | | return |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | processargs() |
| | | for rfile in glob.glob(args.filename): |
| | | if rfile.find("aax") != -1 and os.path.isfile(rfile): |
| | | act_byte = getaaxkey(rfile) |
| | | act_byte = getcorrectkey(rfile) |
| | | metadata = getmetadata(rfile) |
| | | album = getmetadatatags('album') |
| | | artist = getmetadatatags('artist') |