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 fi
if [ "$#" -eq 0 ]; then 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 exit 1
fi fi
@ -26,12 +27,12 @@ then
shift shift
fi fi
if [[ "$1" == '--aac' ]] #if [[ "$1" == '--aac' ]]
then #then
codec=copy # codec=copy
extension=m4b # extension=m4b
shift # shift
fi #fi
if [[ "$1" == '--single' ]] if [[ "$1" == '--single' ]]
then then
@ -81,7 +82,7 @@ do
save_metadata "${path}" save_metadata "${path}"
genre=$(get_metadata_value genre) genre=$(get_metadata_value genre)
artist=$(get_metadata_value artist) 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}" output_directory="$(dirname "${path}")/${genre}/${artist}/${title}"
mkdir -p "${output_directory}" mkdir -p "${output_directory}"
full_file_path="${output_directory}/${title}.${extension}" 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 ## 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) * AUTHCODE: **your** Audible auth code (it won't correctly decode otherwise) (required)
* Everything else is considered an input file, useful for batching! * Everything else is considered an input file, useful for batching!