Text::Playlist::M3U - parser for 'm3u' format
my $m3u = Text::Playlist::M3U->new; my @items = $m3u->load('/path/to/playlist.m3u'); foreach my $item (@items) { # <work with playlist items> } $m3u->save('/path/to/new-playlist.m3u', @items);
Lightweight parser and generator for m3u playlists. Will be usefull if you're just want to read playlist, or convert playlist to another format, or change playlist items by some way.
load
parse
save
dump
For description of these methods see description in base class Text::Playlist
Each parsed item has the following keys in hashref:
* file -- path or url, required * title -- title for given item, required * duration -- item duration in seconds, or -1 if not unknown * attrs -- hashref with attributes for given item, optional
MP3::M3U::Parser -- full-featured parser
* Alex 'AdUser' Z <aduser@cpan.org>
To install Text::Playlist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Playlist
CPAN shell
perl -MCPAN -e shell install Text::Playlist
For more information on module installation, please visit the detailed CPAN module installation guide.