|
|
|
@ -45,25 +45,30 @@ Text::Playlist -- base class for working with various playlist formats
|
|
|
|
|
|
|
|
|
|
=head1 Methods |
|
|
|
|
|
|
|
|
|
=head2 C<items> |
|
|
|
|
=head2 C<load> |
|
|
|
|
|
|
|
|
|
my @items = $pls->items; # array |
|
|
|
|
my $items = $pls->items; # arrayref |
|
|
|
|
my @items = $pls->load('playlist.pls'); |
|
|
|
|
|
|
|
|
|
Returns array of playlist items. |
|
|
|
|
Simple helper for loading playlist from file. See also C<parse>. |
|
|
|
|
|
|
|
|
|
=head2 C<load> |
|
|
|
|
=head2 C<parse> |
|
|
|
|
|
|
|
|
|
$pls->load('playlist.pls'); |
|
|
|
|
my @items = $pls->parse($text); |
|
|
|
|
|
|
|
|
|
Simple helper for loading playlist from file. See also C<parse>. |
|
|
|
|
Takes playlist text and returns array of hashrefs with playlist items. In scalar content returns arrayref. |
|
|
|
|
|
|
|
|
|
=head2 C<save> |
|
|
|
|
|
|
|
|
|
$pls->save('playlist.pls'); |
|
|
|
|
$pls->save('playlist.pls', @items); |
|
|
|
|
|
|
|
|
|
Simple helper for saving playlist to file. See also C<dump>. |
|
|
|
|
|
|
|
|
|
=head2 C<dump> |
|
|
|
|
|
|
|
|
|
my $text = $pls->dump(@items); |
|
|
|
|
|
|
|
|
|
Takes array of hashrefs with playlist items and returns constructed playlist. |
|
|
|
|
|
|
|
|
|
=head1 AUTHORS |
|
|
|
|
|
|
|
|
|
Alex 'AdUser' Z <ad_user@runbox.com> |
|
|
|
|