Chris Pomeroy
2017-08-07 14b74e7e65e2a8f343f485600acee60380c13623
Initial commit
1 files modified
2 files added
29 ■■■■■ changed files
.authcode 1 ●●●● patch | view | raw | blame | history
.gitignore 3 ●●●●● patch | view | raw | blame | history
aaxConvert.py 25 ●●●●● patch | view | raw | blame | history
.authcode
New file
@@ -0,0 +1 @@
12345
.gitignore
@@ -42,3 +42,6 @@
# Sphinx documentation
docs/_build/
.idea
.idea/*
aaxConvert.py
New file
@@ -0,0 +1,25 @@
#!/usr/bin/python
import argparse
import os
# arguments
# 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("filename", help="Filename to convert")
args = parser.parse_args()
act_byte = ""
if args.code:
    act_byte = args.code
elif os.path.isfile('./.authcode'):
    act_byte = open('./.authcode').readline()
if act_byte == "":
    print "Please provide an activation code from audible. Either at the command line or the .authcode file"
else:
    print act_byte
if os.path.isfile(args.filename):
    print os.path.abspath(args.filename)