From ce2a341ebb90d3afe9e831acdc2b38c71d7e40c9 Mon Sep 17 00:00:00 2001 From: KrumpetPirate Date: Wed, 10 Aug 2016 23:48:13 -0500 Subject: [PATCH] Fixed : in Title causing protocol error --- .gitignore | 2 +- AAXtoMP3.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3179bcb..f481853 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -AudibleActivation.txt +ACTIVATION diff --git a/AAXtoMP3.sh b/AAXtoMP3.sh index e869e1e..5fc0331 100755 --- a/AAXtoMP3.sh +++ b/AAXtoMP3.sh @@ -12,7 +12,7 @@ while [ $# -gt 0 ]; do GENRE=`grep -a -m1 -h -r "genre" tmp.txt | head -1 | cut -d: -f2- | xargs` BITRATE=`grep -a -m1 -h -r "bitrate" tmp.txt | head -1 | rev | cut -d: -f 1 | rev | egrep -o [0-9]+ | xargs` BITRATE="${BITRATE}k" - OUTPUT="$TITLE" + OUTPUT=`echo $TITLE | sed -e 's/\:/-/g' | xargs -0` OUTPUT_DIR="${GENRE}/${ARTIST}/${TITLE}" ffmpeg -v error -stats -activation_bytes $AUTHCODE -i "${FILE}" -vn -c:a libmp3lame -ab $BITRATE "${OUTPUT}.mp3"