From 1132602f657a46f684046e73e8aff369a8b6f651 Mon Sep 17 00:00:00 2001 From: Adam Baxter Date: Thu, 16 Nov 2017 00:16:24 +1100 Subject: [PATCH] Add support for copying to m4b (no reencode) --- AAXtoMP3 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index b53bec6..e8b0ba0 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -15,7 +15,7 @@ if ! [[ $(type -P "$GREP") ]]; then fi if [ "$#" -eq 0 ]; then - echo "Usage: bash AAXtoMP3.sh [--flac] [--single] AUTHCODE {FILES}" + echo "Usage: bash AAXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}" exit 1 fi @@ -26,6 +26,13 @@ then shift fi +if [[ "$1" == '--aac' ]] +then + codec=copy + extension=m4b + shift +fi + if [[ "$1" == '--single' ]] then mode=single