App-Pimpd
view release on metacpan or search on metacpan
lib/App/Pimpd/Playlist.pm view on Meta::CPAN
=item add_playlist()
add_playlist('rock');
Parameters: @playlists
Tries hard to find valid, existing playlists based on input.
If a playlist doesn't exist, tries to match the strings against the existing
ones (using B<get_valid_lists()> from B<App::Pimpd::Validate>), presenting
the user with a prompt.
get_valid_lists() returns a list of valid playlists which we add to the current
playlist.
=item play_pos_from_playlist()
play_pos_from_playlist(42);
Parameters: $playlist_pos
lib/App/Pimpd/Validate.pm view on Meta::CPAN
otherwise munch.
=item get_valid_lists()
Parameters: @playlists
Returns: @valid_playlists
Takes a list and traverses it, checking if every playlist exists.
If a playlist is found to be non-existant, tries to match the string against
all known playlists. If a partial match is found, prompts for validation.
=item isa_valid_playlist
=back
=head1 SEE ALSO
App::Pimpd
=head1 AUTHOR
Accepts file arguments:
pimpd2 -af ~/music/Nirvana/Bleach/*.flac
=head2 -a, --add-playlist
Add playlist to the current playlist.
If not given a full name, and the name partially matches existing playlists,
prompts for input:
pimpd2 -a 2010
0 2010-12-indie
1 2010-12-other
2 2010-12-pop
3 2010-12-punk_rock
4 2010-12-rock
5 2010-12-undef
choice:
( run in 1.175 second using v1.01-cache-2.11-cpan-6aa56a78535 )