|
|
@ -80,6 +80,30 @@ Text::Playlist::PLS - parser for 'pls' format |
|
|
|
|
|
|
|
|
|
|
|
For description of these methods see description in base class L<Text::Playlist> |
|
|
|
For description of these methods see description in base class L<Text::Playlist> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my $pls = Text::Playlist::PLS->new; |
|
|
|
|
|
|
|
my @items = $pls->load('/path/to/playlist.pls'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach my $item (@items) { |
|
|
|
|
|
|
|
# <work with playlist items> |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$pls->save('/path/to/new-playlist.pls', @items); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Lightweight parser and generator for pls 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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=head2 C<load> |
|
|
|
|
|
|
|
=head2 C<parse> |
|
|
|
|
|
|
|
=head2 C<save> |
|
|
|
|
|
|
|
=head2 C<dump> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For description of these methods see description in base class L<Text::Playlist> |
|
|
|
|
|
|
|
|
|
|
|
=head1 Item format |
|
|
|
=head1 Item format |
|
|
|
|
|
|
|
|
|
|
|
Each parsed item has the following keys in hashref: |
|
|
|
Each parsed item has the following keys in hashref: |
|
|
@ -90,6 +114,6 @@ Each parsed item has the following keys in hashref: |
|
|
|
|
|
|
|
|
|
|
|
=head1 AUTHORS |
|
|
|
=head1 AUTHORS |
|
|
|
|
|
|
|
|
|
|
|
Alex 'AdUser' Z <ad_user@runbox.com> |
|
|
|
Alex 'AdUser' Z <aduser@cpan.org> |
|
|
|
|
|
|
|
|
|
|
|
=cut |
|
|
|
=cut |
|
|
|