use HTML::Template::Compiled qw//;
use Memoize qw/memoize/;
+use Carp qw/carp/;
use DB_File qw//;
use Encode qw/encode/;
use File::Basename qw/fileparse/;
tracknumber => $tags->query('TRACKNUMBER'),
tracktotal => $tags->query('TRACKTOTAL'),
genre => $tags->query('GENRE'),
- file => scalar fileparse $file
+ file => scalar fileparse $file,
);
freeze \%data;
[ 'MP3::Info', \&mp3info, '.mp3' ],
[ 'Ogg::Vorbis::Header::PurePerl', \&vorbisinfo, '.ogg', '.oga' ],
[ 'MP4::Info', \&mp4info, '.mp4', '.aac', '.m4a' ],
- [ 'Audio::Opusfile', \&opusinfo, '.opus' ]
+ [ 'Audio::Opusfile', \&opusinfo, '.opus' ],
);
my %info;
}
unless (%info) {
- warn 'No tags-reading module detected. Install one of the following modules: ' . join ', ', map { $_->[0] } @optional_modules;
+ carp 'No tags-reading module detected. Install one of the following modules: ' . join ', ', map { $_->[0] } @optional_modules;
}
sub normalizer{