AudioFile::Identify::MusicBrainzAudioFile::Identify::MusicBrainz is a pure-perl MusicBrainz client implementation. | |
Download |
AudioFile::Identify::MusicBrainz Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Tom Insam
- Publisher web site:
- http://search.cpan.org/~tomi/URI-Find-Simple-1/lib/URI/Find/Simple.pm
AudioFile::Identify::MusicBrainz Tags
AudioFile::Identify::MusicBrainz Description
AudioFile::Identify::MusicBrainz is a pure-perl MusicBrainz client implementation. AudioFile::Identify::MusicBrainz is a pure-perl MusicBrainz client implementation.A::I::M is, at heart, a pure-perl implementation of the MusicBrainz client protocol, encapsulated in some sensible Track/Album/Artist objects that have the sort of methods you'd expect. So I can, given a Track object, go my $some_title = $track->album->track(4)->artist->title;Eventually, this is intended to be merely a plugin to a more general AudioFile::Identify architecture, along with such exciting things as A::I::Amazon, A::I::CDDB, etc, but until they're ready and we have a decent API for it, it's useful to have this out in the wild, as it's very useful.USAGESee AudioFile::Identify::MusicBrainz::Query for details, but in summary: use AudioFile::Identify::MusicBrainz::Query; my $query = AudioFile::Identify::MusicBrainz::Query->new(); $query->FileInfoLookup( artist => 'coldplay', title => 'yellow', items => 5, ) or die "Could not query: " . $query->error(); print "I got ".scalar(@{$query->results})." resultsn"; print "Most likely album is '". $query->result(0)->album->title ."'n"; print "Most likely trackNum is '". $query->result(0)->track->trackNum ."'n";See AudioFile::Identify::MusicBrainz::Album, AudioFile::Identify::MusicBrainz::Artist and AudioFile::Identify::MusicBrainz::Track for details of the methods you can call on these returned objects.There's an example of its use in the examples folder in the tarball, tagger.pl (see tagger.pl). This is a utility that examines the ID3 tags of an MP3 file, and will print what MusicBrainz suggests for the rest of the tags. Requirements: · Perl
AudioFile::Identify::MusicBrainz Related Software