NAME
App::Pimpd::Collection::Search - Package exporting various search functions for the MPD collection
SYNOPSIS
use App::Pimpd;
use App::Pimpd::Collection::Search
my @album = search_db_album('Stripped');
my @songs = search_db_quick('love');
DESCRIPTION
App::Pimpd::Collection::Search provides search functions for the MPD collection
EXPORTS
- search_db_quick()
-
my @paths = search_db_quick('foo');
Parameters: $regex
Returns: @paths
Given a valid regular expression, searches the collection for matching filenames. The search is performed case insensitive.
In list context, returns full paths for the matched songs.
In scalar context, returns the number of matches.
- search_db_artist()
-
my @paths = search_db_artist('Laleh');
Parameters: $string
Returns: @paths
In list context, returns full paths for all songs by $artist.
In scalar context, returns the number of songs by $artist.
- search_db_album()
-
Parameters: $string
Returns: @paths
In list context, returns full paths for the songs on $album.
In scalar context, returns the number of songs on albums.
- search_db_title()
-
Parameters: $string
Returns: @paths
In list context, returns full paths for the songs named $string.
In scalar context, returns the number of songs named $string.
SEE ALSO
App::Pimpd::Collection
AUTHOR
Magnus Woldrich
CPAN ID: WOLDRICH
m@japh.se
http://japh.se
COPYRIGHT
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.