use constant {
MPD_MJR_MIN => 0,
- MPD_MNR_MIN => 13,
+ MPD_MNR_MIN => 21,
MPD_REV_MIN => 0,
};
# get_item_thumbnails({ options }, file, ...)
# get_item_thumbnails(file, ...)
#
-# For each music file listed, obtain a thumbnail (if any) for the
-# cover art.
+# For each music file listed, obtain a thumbnail (if any) for the cover art.
#
-# The first argument is a hash reference to control the mode of
-# operation; it may be omitted for default options.
+# The first argument is a hash reference to control the mode of operation;
+# it may be omitted for default options.
#
# get_item_thumbnails({ small => 1 }, ...) - smaller thumbnails
#
$c = "%";
}
+ open THUMB, "-|", "$FindBin::Bin/mpdthumb.sh", @opts, "--", @_;
foreach (@_) {
- open THUMB, "-|", "$FindBin::Bin/thumbnail.zsh", "--music",
- @opts, $_;
my $thumb = <THUMB>;
chomp $thumb;
$thumb = "$c$thumb$c" if (-f $thumb);
push @results, $thumb;
- close THUMB;
- die("thumbnail.zsh failed") if ($?);
}
+ close THUMB;
+ die("mpdthumb failed") if ($?);
return @results;
}