AnyData
view release on metacpan or search on metacpan
lib/AnyData/Format/Mp3.pm view on Meta::CPAN
# 'file_name,path,ext,fullpath,size,'
# 'name,artist,album,year,comment,genre';
}
return $table;
}
sub get_mp3_tag {
my($file) = shift;
my $adf = AnyData::Storage::File->new;
my(undef,$fh,undef) = $adf->open_local_file($file,'r');
local $/ = '';
$fh->seek(-128,2);
my $str = <$fh> || '';
$fh->close;
return undef if !($str =~ /^TAG/);
#$file = sprintf("%-255s",$file);
#$str =~ s/^TAG(.*)/$file$1/;
$str =~ s/^TAG(.*)/$1/;
my $genre = $str;
$genre =~ s/^.*(.)$/$1/g;
$str =~ s/(.)$//g;
( run in 1.870 second using v1.01-cache-2.11-cpan-e5176c747c2 )