Skip to content

Commit

Permalink
fix: an issue where ffmpeg throws 234 when trying to add a cover imag…
Browse files Browse the repository at this point in the history
…e to wav
  • Loading branch information
dpolakovics committed Nov 16, 2024
1 parent ec572b8 commit 2f2bc04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/logic/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2f2bc04

Please sign in to comment.