From 0c2c439d55d301de9cce5b01b09c9ea165cef255 Mon Sep 17 00:00:00 2001 From: KrumpetPirate Date: Sun, 18 Feb 2018 01:13:00 -0600 Subject: [PATCH] Removed AAX, causes issues with some audiobooks --- AAXtoMP3 | 17 +++++++++-------- README.md | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 6475fc5..c520b33 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -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}" diff --git a/README.md b/README.md index 3593cf3..fc665b4 100644 --- a/README.md +++ b/README.md @@ -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!