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
This commit is contained in:
Reidar Cederqvist 2023-03-27 21:27:03 +02:00
parent e66c51dbfa
commit de0d6097ea

View File

@ -970,7 +970,7 @@ do
if [ -f "${cover_file}" ]; then if [ -f "${cover_file}" ]; then
log "Adding cover art" log "Adding cover art"
# FFMPEG does not support MPEG-4 containers fully # # 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}" mp4art --add "${cover_file}" "${output_file}"
# FFMPEG for everything else # # FFMPEG for everything else #
else else