From 1ac66d1a940e34358980b4ef2831cf2ad0b3722b Mon Sep 17 00:00:00 2001 From: Dirk Loeckx <3196144+dloeckx@users.noreply.github.com> Date: Sun, 22 Oct 2017 22:51:41 +0200 Subject: [PATCH 1/2] Embedded cover art to (chapter) MP3's --- AAXtoMP3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 9b8f872..a5537c5 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -83,6 +83,10 @@ do debug "Created ${full_file_path}." + cover_path="${output_directory}/cover.jpg" + debug "Extracting cover into ${cover_path}..." + Date: Sun, 22 Oct 2017 22:54:10 +0200 Subject: [PATCH 2/2] Update metadata: track number = chapternum, appended chapter number to track title track number was eg "Chapter 03", and is now eg 3 . This fits better in most mp3 players. track title was the book title for all tracks, now it is eg "Book Title - 01 Chapter 1" (same as filename) --- AAXtoMP3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}"