From addfeb0ae7543c91c6d00f34170f6f7100c3e166 Mon Sep 17 00:00:00 2001 From: catduckgnaf Date: Wed, 20 Dec 2023 18:19:25 -0500 Subject: [PATCH] updating combine Added upon successful conversion to delete the .mp3 files. added log message --- readarr/combine.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readarr/combine.bash b/readarr/combine.bash index 85e62ac..ab278bb 100644 --- a/readarr/combine.bash +++ b/readarr/combine.bash @@ -36,8 +36,11 @@ combineM4bFiles() { if [ $? -eq 0 ]; then log "M4b files combined successfully. Output: $outputFile" + rm -f "$readarr_artist_path/*.mp3" + log "MP3 files removed after successful M4b file combination." else log "Error combining M4b files with FFmpeg." + log "original file untouched" fi }