/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/AudioFile-Identify-MusicBrainz/blib/lib/AudioFile/Identify/MusicBrainz/Track.pm


NAME

AudioFile::Identify::MusicBrainz::Track


DESCRIPTION

A 'Track' object. Holds properties like 'trackNum', 'artist', 'title', etc.


METHODS

title

get/set the track title. Pass a string or an XML::DOM::Element.

title

get/set the trackNum. Pass a number or an XML::DOM::Element. Note that this doesn't do the iTunes-style '3/14' numbering, it'll just be '3'.

trmid

get/set the trmid. Pass a string or an XML::DOM::Element.

creator

get/set the creator id. Pass a string or an XML::DOM::Element. This corresponds to the artist, but don't get the artist like this, get the artist with the the artist manpage method, which will return a AudioFile::Identify::MusicBrainz::Artist object.

artist

return a the AudioFile::Identify::MusicBrainz::Artist manpage object for the track artist.

duration

get/set the track duration, in seconds.

getData

The track object is created with no data in it, merely an url to ask about for more information. getData() will get that url and build the properties of the track. It's safe to call multiple times, as it won't fetch the data more than once.

If you're getting the Track object via a Request or Album object, you can ignore this, as it'll be called for you.

 /home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/AudioFile-Identify-MusicBrainz/blib/lib/AudioFile/Identify/MusicBrainz/Track.pm