Removed AAX, causes issues with some audiobooks

This commit is contained in:
KrumpetPirate 2018-02-18 01:13:00 -06:00
parent ed084692a2
commit 0c2c439d55
2 changed files with 10 additions and 9 deletions

View File

@ -15,7 +15,8 @@ if ! [[ $(type -P "$GREP") ]]; then
fi
if [ "$#" -eq 0 ]; then
echo "Usage: bash AAXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}"
#echo "Usage: bash AXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}"
echo "Usage: bash AXtoMP3.sh [--flac] [--single] AUTHCODE {FILES}"
exit 1
fi
@ -26,12 +27,12 @@ then
shift
fi
if [[ "$1" == '--aac' ]]
then
codec=copy
extension=m4b
shift
fi
#if [[ "$1" == '--aac' ]]
#then
# codec=copy
# extension=m4b
# shift
#fi
if [[ "$1" == '--single' ]]
then
@ -81,7 +82,7 @@ do
save_metadata "${path}"
genre=$(get_metadata_value genre)
artist=$(get_metadata_value artist)
title=$(get_metadata_value title) | sed -e 's/\:/-/g' | xargs -0
title=$(get_metadata_value title | sed 's/'\:'/'-\ '/g' | xargs -0)
output_directory="$(dirname "${path}")/${genre}/${artist}/${title}"
mkdir -p "${output_directory}"
full_file_path="${output_directory}/${title}.${extension}"

View File

@ -31,7 +31,7 @@ Thanks to kbabioch, this script has also been packaged in the [AUR](https://aur.
## Usage
```
bash AAXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}
bash AAXtoMP3.sh [--flac] [--single] AUTHCODE {FILES}
```
* AUTHCODE: **your** Audible auth code (it won't correctly decode otherwise) (required)
* Everything else is considered an input file, useful for batching!