Compare commits

...

2 Commits

Author SHA1 Message Date
dce5236b1f Documentation to setup and run script 2021-08-13 12:42:31 -04:00
0b04064550 Changed useragent 2021-08-13 12:30:14 -04:00
2 changed files with 19 additions and 1 deletions

View File

@ -1,2 +1,20 @@
# audible-converter
## Setup
Install [FFmpeg](https://ffmpeg.org/download.html) and [jq](https://stedolan.github.io/jq/download/)
### Fedora
```sh
sudo dnf install ffmpeg jq
```
## Usage
1. Download audiobook from Audible in .aax format.
2. Run the following command
```sh
./audible-converter.sh [Path to Audiobook file]
```
3. A converted file will be saved in the current directory.

2
audible-converter.sh Normal file → Executable file
View File

@ -7,7 +7,7 @@ function getHash() {
# getActivationBytes returns the bytes needed to decrypt a given hash.
function getActivationBytes() {
json=$(curl -A 'Christian Colglazier' https://aax.api.j-kit.me/api/v2/activation/${1})
json=$(curl -A 'audible-converter' https://aax.api.j-kit.me/api/v2/activation/${1})
echo $(echo $json | jq '.activationBytes' | tr -d '"')
}