AnyData
view release on metacpan - search on metacpan
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;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.130 second using v1.00-cache-2.02-grep-82fe00e-cpan-cec75d87357c )