Merge pull request #40 from voltagex/aac

Add support for copying to m4b (no reencode)
This commit is contained in:
KrumpetPirate 2018-02-18 00:29:17 -06:00 committed by GitHub
commit da3ca76930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ if ! [[ $(type -P "$GREP") ]]; then
fi fi
if [ "$#" -eq 0 ]; then 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 exit 1
fi fi
@ -26,6 +26,13 @@ then
shift shift
fi fi
if [[ "$1" == '--aac' ]]
then
codec=copy
extension=m4b
shift
fi
if [[ "$1" == '--single' ]] if [[ "$1" == '--single' ]]
then then
mode=single mode=single