From de0d6097eac6b66d5981b5170c8baa4365e4c936 Mon Sep 17 00:00:00 2001 From: Reidar Cederqvist Date: Mon, 27 Mar 2023 21:27:03 +0200 Subject: [PATCH] stop error when splitting to chapters using mp4 format the main output_file is deleted after splitting into chapters causing an error when trying to tag output_file with cover art --- AAXtoMP3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 0a6c2e0..b1a46a2 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -970,7 +970,7 @@ do if [ -f "${cover_file}" ]; then log "Adding cover art" # FFMPEG does not support MPEG-4 containers fully # - if [ "${container}" == "mp4" ] ; then + if [ "${container}" == "mp4" -a -f ${output_file} ] ; then mp4art --add "${cover_file}" "${output_file}" # FFMPEG for everything else # else