Browse Source

* fix pod

master
Alex 'AdUser' Z 10 years ago
parent
commit
b03e5b0993
  1. 10
      lib/Text/Playlist.pm
  2. 17
      lib/Text/Playlist/M3U.pm
  3. 22
      lib/Text/Playlist/PLS.pm

10
lib/Text/Playlist.pm

@ -43,6 +43,10 @@ sub save {
Text::Playlist -- base class for work with various playlist formats Text::Playlist -- base class for work with various playlist formats
=head1 DESCRIPTION
This module acts only as base class for specific parsers.
=head1 Methods =head1 Methods
=head2 C<load> =head2 C<load>
@ -69,8 +73,12 @@ Simple helper for saving playlist to file. See also C<dump>.
Takes array of hashrefs with playlist items and returns constructed playlist. Takes array of hashrefs with playlist items and returns constructed playlist.
=head1 SEE ALSO
L<Text::Playlist::M3U>, L<Text::Playlist::PLS>, L<Text::Playlist::XSPF>
=head1 AUTHORS =head1 AUTHORS
Alex 'AdUser' Z <ad_user@runbox.com> * Alex 'AdUser' Z <aduser@cpan.org>
=cut =cut

17
lib/Text/Playlist/M3U.pm

@ -124,9 +124,14 @@ Lightweight parser and generator for m3u playlists.
Will be usefull if you're just want to read playlist, or convert playlist Will be usefull if you're just want to read playlist, or convert playlist
to another format, or change playlist items by some way. to another format, or change playlist items by some way.
=head1 Methods
=head2 C<load> =head2 C<load>
=head2 C<parse> =head2 C<parse>
=head2 C<save> =head2 C<save>
=head2 C<dump> =head2 C<dump>
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>
@ -135,17 +140,17 @@ For description of these methods see description in base class L<Text::Playlist>
Each parsed item has the following keys in hashref: Each parsed item has the following keys in hashref:
* file -- path or url, required * file -- path or url, required
* title -- title for given item, required * title -- title for given item, required
* duration -- item duration in seconds, or -1 if not unknown * duration -- item duration in seconds, or -1 if not unknown
* attrs -- hashref with attributes for given item, optional * attrs -- hashref with attributes for given item, optional
=head1 SEE ALSO =head1 SEE ALSO
* L<MP3::M3U::Parser> -- full-featured parser L<MP3::M3U::Parser> -- full-featured parser
=head1 AUTHORS =head1 AUTHORS
Alex 'AdUser' Z <aduser@cpan.org> * Alex 'AdUser' Z <aduser@cpan.org>
=cut =cut

22
lib/Text/Playlist/PLS.pm

@ -71,15 +71,6 @@ __END__
Text::Playlist::PLS - parser for 'pls' format Text::Playlist::PLS - parser for 'pls' format
=head1 DESCRIPTION
=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 SYNOPSIS =head1 SYNOPSIS
my $pls = Text::Playlist::PLS->new; my $pls = Text::Playlist::PLS->new;
@ -97,9 +88,14 @@ Lightweight parser and generator for pls playlists.
Will be usefull if you're just want to read playlist, or convert playlist Will be usefull if you're just want to read playlist, or convert playlist
to another format, or change playlist items by some way. to another format, or change playlist items by some way.
=head1 Methods
=head2 C<load> =head2 C<load>
=head2 C<parse> =head2 C<parse>
=head2 C<save> =head2 C<save>
=head2 C<dump> =head2 C<dump>
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>
@ -108,12 +104,12 @@ For description of these methods see description in base class L<Text::Playlist>
Each parsed item has the following keys in hashref: Each parsed item has the following keys in hashref:
* file -- path or url, required * file -- path or url, required
* title -- title for given item, required * title -- title for given item, required
* length -- item duration in seconds, or -1 if not unknown * length -- item duration in seconds, or -1 if unknown
=head1 AUTHORS =head1 AUTHORS
Alex 'AdUser' Z <aduser@cpan.org> * Alex 'AdUser' Z <aduser@cpan.org>
=cut =cut

Loading…
Cancel
Save