mirror of
https://github.com/moex3/flac2mp3.pl
synced 2024-11-28 05:26:40 -05:00
Only care about custom cover image to embed if we have an option
This commit is contained in:
parent
be6853c5da
commit
1628834c1b
@ -270,8 +270,8 @@ sub embedImageFromFlac {
|
|||||||
my $flac = shift;
|
my $flac = shift;
|
||||||
my $mp3 = shift;
|
my $mp3 = shift;
|
||||||
|
|
||||||
return if ($opt_embedcover eq "");
|
if (defined($opt_embedcover)) {
|
||||||
if ($opt_embedcover ne "") {
|
return if ($opt_embedcover eq "");
|
||||||
my $cmime = getMimeType($opt_embedcover);
|
my $cmime = getMimeType($opt_embedcover);
|
||||||
qx(mid3v2 -p '${opt_embedcover}:cover:3:$cmime' -- '$mp3');
|
qx(mid3v2 -p '${opt_embedcover}:cover:3:$cmime' -- '$mp3');
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user