MP3::M3U::Parser 2.20 review
DownloadMP3::M3U::Parser is a MP3 playlist parser. SYNOPSIS use MP3::M3U::Parser; my $parser = MP3::M3U::Parser->new(%options);
|
|
MP3::M3U::Parser is a MP3 playlist parser.
SYNOPSIS
use MP3::M3U::Parser;
my $parser = MP3::M3U::Parser->new(%options);
$parser->parse(*FILEHANDLE, $scalar, "/path/to/playlist.m3u");
my $result = $parser->result;
my %info = $parser->info;
$parser->export(-format => 'xml',
-file => "/path/mp3.xml",
-encoding => 'ISO-8859-9');
$parser->export(-format => 'html',
-file => "/path/mp3.html",
-drives => 'off');
# convert all m3u files to individual html files.
foreach () {
$parser->parse($_)->export->reset;
}
# convert all m3u files to one big html file.
foreach () {
$parser->parse($_);
}
$parser->export;
MP3::M3U::Parser is a parser for M3U mp3 playlist files. It also parses the EXTINF lines (which contains id3 song name and time) if possible. You can get a parsed object or specify a format and export the parsed data to it. The format can be xml or html.
Requirements:
Perl
MP3::M3U::Parser 2.20 search tags