App::Pimpd::Playlist - Functions dealing with the current playlist
use App::Pimpd; use App::Pimpd::Playlist; add_playlist(@playlists); play_pos_from_playlist(42); queue(4, 12, 9, 18);
App::Pimpd::Playlist provides functions playing with the current 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 get_valid_lists() from 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.
play_pos_from_playlist(42);
Parameters: $playlist_pos
Play $playlist_pos in the current playlist.
queue(42, 3, 9, 18, 12);
Parameters: @playlist_positions
Simulates a queue by turning random mode off and moving the supplied playlist position IDs up in order.
Show the current playlist.
Takes a list of existing playlists and prints the content.
In list context, returns a list with known playlists.
In scalar context, returns the number of knows playlists.
Parameters: @paths | \@paths
Adds the list of songs (paths) to the current playlist.
Parameters: $regex
Tries to remove all albums matching $regex from the current playlist.
App::Pimpd
Magnus Woldrich CPAN ID: WOLDRICH magnus@trapd00r.se http://japh.se
Copyright (C) 2010, 2011 Magnus Woldrich. All right reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Pimpd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Pimpd
CPAN shell
perl -MCPAN -e shell install App::Pimpd
For more information on module installation, please visit the detailed CPAN module installation guide.