diff --git a/AAXtoMP3 b/AAXtoMP3 index c520b33..df3fb02 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -34,6 +34,13 @@ fi # shift #fi +if [[ "$1" = '--opus' ]] +then + codec=libopus + extension=ogg + shift +fi + if [[ "$1" == '--single' ]] then mode=single @@ -108,7 +115,16 @@ do read -r -u9 _ _ chapter chapter_title="${title} - $(printf %0${#chaptercount}d $chapternum) ${chapter}" chapter_file="${output_directory}/${chapter_title}.${extension}" -