AudioFile::Identify::MusicBrainz::Track
A 'Track' object. Holds properties like 'trackNum', 'artist', 'title', etc.
get/set the track title. Pass a string or an XML::DOM::Element.
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'.
get/set the trmid. Pass a string or an XML::DOM::Element. NOTE:
This only returns the first TRM ID, even if more than one is provided
by the MusicBrainz server.
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.
return a the AudioFile::Identify::MusicBrainz::Artist manpage object for the track artist.
get/set the track duration, in seconds. Pass a scalar value for
duration or a XML::DOM::Element.
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.
However, you really don't need to call it at all. The various accessor methods of the Track object will take care of invoking this function when necessary. Also, if you're getting the Track object via a Request or Album object, you can ignore this, as it'll be called for you.