Re: Can't figure out how to get the artist name from a DiscID
David Baltimore <[email protected]> Mon, 13 Apr 2015 15:34:58 -0400
| Newsgroups | gmane.comp.audio.musicbrainz.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Andy, Thanks for the reply. I started with the cdlookup example and it did dump a ton of info to cout. I had no idea how to get to the Artist name. I read the xml sections of the online documentation but it made no sense to me. I trried to requery the release after the discid but it always came back with an error and I have no idea how to ask for an artist name in addition to the release info. >3. For each Release ID, perform a release query, including any extra >parameters you need (artists etc.) >4. If you want information related to the specific disk rather than the >release as a whole, you need to filter the list of media that match the >original disk id. I don't know how to do the above! Also what is it you are referring to in this statement. "I'd also recommend a thorough reading of the WS documentation," I thought I read the whole website. Still at a loss here. I don't know how to requery for specific information. Regards, David At 09:18 AM 4/8/2015, you wrote: >Hi David, > >In article <[email protected]>, > David Baltimore<[email protected]> wrote: > > I have spent countless hours trying to get the Artist name from a > > DiscID. The CRelease has a CArtist in it but it's always NULL, yet > > when I cout << *FullRelease in the sample code the Artist Name is there. > > > > The documentation is not at all helpful. ANY help would be greatly > > appreciated. > >The sample code shows you how to do this. Using the library requires a good >understanding of what responses come back when you make calls into the web >service. I'd recommend you always understand what queries you want to send >to the webservice, and what responses to expect. > >In short. > >1. Do a discid query for the discid you want to look up >2. From this, retrieve the ReleaseList >3. For each Release ID, perform a release query, including any extra >parameters you need (artists etc.) >4. If you want information related to the specific disk rather than the >release as a whole, you need to filter the list of media that match the >original disk id. > >Take a look at the code in examples/cdlookup.cc and it should hopefully >become clearer. I'd also recommend a thorough reading of the WS >documentation, as the library is just a very thin wrapper around this. > >Andy > > >_______________________________________________ >MusicBrainz-devel mailing list >[email protected] >http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel