Added check single verse chapters
| | |
| | | # activation_key, file name, codec(default to mp3) |
| | | parser = argparse.ArgumentParser() |
| | | parser.add_argument("--code", help="Activation Code from audible to decrypt files") |
| | | parser.add_argument("--single", help="Use this option to create a single file") |
| | | parser.add_argument("--dpath", help="Use this to set the destination path. Otherwise I will use the current directory") |
| | | parser.add_argument("-s","--single", help="Use this option to create a single file", action="store_true") |
| | | parser.add_argument("-d","--dpath", help="Use this to set the destination path. Otherwise I will use the current directory") |
| | | parser.add_argument("-v", "--verbose", help="Send output to stdout", action="store_true") |
| | | parser.add_argument("filename", help="Filename to convert, or directory to look in") |
| | | |
| | |
| | | return |
| | | |
| | | |
| | | def chapters(): |
| | | # Creating individual chapters |
| | | |
| | | |
| | | |
| | | if args.dpath: |
| | | path = args.dpath |
| | |
| | | os.makedirs(ddir) |
| | | print ddir |
| | | reencode(rfile, single_file_path) |
| | | |
| | | |