diff --git a/AAXtoMP3 b/AAXtoMP3 index a5537c5..b53bec6 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -98,9 +98,11 @@ do then read -r -u9 _ read -r -u9 _ _ chapter - chapter_file="${output_directory}/${title} - $(printf %0${#chaptercount}d $chapternum) ${chapter}.${extension}" + chapter_title="${title} - $(printf %0${#chaptercount}d $chapternum) ${chapter}" + chapter_file="${output_directory}/${chapter_title}.${extension}"