Compare commits

..

No commits in common. "dce5236b1f23c048b10f8532cfaef2321f512789" and "1c5303898d62a07c5cf06c9244511843a91fa4d2" have entirely different histories.

2 changed files with 1 additions and 19 deletions

View File

@ -1,20 +1,2 @@
# 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 Executable file → Normal file
View File

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