NAME

Text::Playlist -- base class for work with various playlist formats

DESCRIPTION

This module acts only as base class for specific parsers.

Methods

load

my @items = $pls->load('playlist.pls');

Simple helper for loading playlist from file. See also parse.

parse

my @items = $pls->parse($text);

Takes playlist text and returns array of hashrefs with playlist items. In scalar content returns arrayref.

save

$pls->save('playlist.pls', @items);

Simple helper for saving playlist to file. See also dump.

dump

my $text = $pls->dump(@items);

Takes array of hashrefs with playlist items and returns constructed playlist.

SEE ALSO

Text::Playlist::M3U, Text::Playlist::PLS, Text::Playlist::XSPF

AUTHORS

* Alex 'AdUser' Z <aduser@cpan.org>