diff --git a/AAXtoMP3 b/AAXtoMP3 index b53bec6..293de3f 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -84,10 +84,15 @@ do debug "Created ${full_file_path}." cover_path="${output_directory}/cover.jpg" + debug "Extracting cover into ${cover_path}..." - "${playlist_file}" + chaptercount=$($GREP -Pc "Chapter.*start.*end" $metadata_file) debug "Extracting ${chaptercount} chapter files from ${full_file_path}..." @@ -103,6 +108,10 @@ do > "${playlist_file}" + echo "${chapter_title}.${extension}" >> "${playlist_file}" chapternum=$((chapternum + 1 )) fi done 9< "$metadata_file"