Add support for copying to m4b (no reencode)

This commit is contained in:
Adam Baxter 2017-11-16 00:16:24 +11:00
parent de01589b94
commit 1132602f65

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