|
/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/AudioFile-Identify-MusicBrainz/blib/lib/AudioFile/Identify/MusicBrainz/Query.pm |
AudioFile::Identify::MusicBrainz::Query
The main query object. This is probably the thing you want to use.
FileInfoLookup($query)Perform a MusicBrainz FileInfoLookup query - this is the clever one that I care about. $query here is a hash / hashref where the keys are the information you know:
use AudioFile::Identify::MusicBrainz::Query;
my $query = AudioFile:::Identify::MusicBrainz::Query->new();
$query->FileInfoLookup(
artist => 'coldplay',
title => 'yellow',
items => 30,
) or die "Could not query: " . $query->error();
print "I got ".scalar(@{$query->results})." results\n";
keys you can use in the query are:
This function will return true on success, false on error, and an error will
be accessible through the error function.
returns the last error generated by Query.
returns a listref of AudioFile::Identify::MusicBrainz::Result objects.
result(index)returns a given result, at a given index.
|
/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/AudioFile-Identify-MusicBrainz/blib/lib/AudioFile/Identify/MusicBrainz/Query.pm |