1
0
mirror of https://github.com/moex3/flac2mp3.pl synced 2024-11-24 12:25:55 -05:00

Only care about custom cover image to embed if we have an option

This commit is contained in:
moex3 2022-12-13 14:58:29 +01:00
parent be6853c5da
commit 1628834c1b
No known key found for this signature in database
GPG Key ID: ABC92E00CF59BB7A

View File

@ -270,8 +270,8 @@ sub embedImageFromFlac {
my $flac = shift;
my $mp3 = shift;
return if ($opt_embedcover eq "");
if ($opt_embedcover ne "") {
if (defined($opt_embedcover)) {
return if ($opt_embedcover eq "");
my $cmime = getMimeType($opt_embedcover);
qx(mid3v2 -p '${opt_embedcover}:cover:3:$cmime' -- '$mp3');
return;