From 2f2bc040f40562213f7b004cd23c3bf1f1c36e2f Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sat, 16 Nov 2024 02:09:47 +0100 Subject: [PATCH] fix: an issue where ffmpeg throws 234 when trying to add a cover image to wav --- internal/logic/sync.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/logic/sync.go b/internal/logic/sync.go index f569eb9..327c932 100644 --- a/internal/logic/sync.go +++ b/internal/logic/sync.go @@ -87,7 +87,9 @@ func CombineFiles(folder1 string, folder2 string, outputFolder string, progress } arguments = append(arguments, channelArguments...) arguments = append(arguments, getBaseArguments()...) - arguments = append(arguments, getCoverArtArguments(file, files2[index])...) + if ext == ".mp3" || ext == ".flac" { + arguments = append(arguments, getCoverArtArguments(file, files2[index])...) + } arguments = append(arguments, newFileName) cmd := exec.CommandContext(ctx, ffmpeg, arguments...) cmd.SysProcAttr = getSysProcAttr()