'releases is not a valid inc parameter for the discid resource.'
Huh?
How should I be retrieving a disc ID from the web service, such that I know which track list matches the disc? At the moment, it seems I have to do two queries; one by disc ID to get the release ID, then a release ID query which I then filter manually by disc ID. Should there not be a simpler way in which we just get the result from the disc ID query? Should a disc ID query not just return a medium?
A query for a release:
http://musicbrainz.org/ws/2/release/7057bbc3-ba54-3a8b-aa18-a324f8a63ad8?inc=artist-credits%2Blabels%2Bdiscids%2Brecordings
will return the disc IDs under each medium in a disc-list element.
However, if you query by disc ID, you get a list of releases returned which include mediums with disc IDs other than those requested:
http://musicbrainz.org/ws/2/discid/ukDFYzfdY6xscXSNNt5Mvrbd6go-?cdstubs=no&inc=artist-credits%2Blabels%2Brecordings%20isrcs
and attempting to include the disc IDs:
http://musicbrainz.org/ws/2/discid/ukDFYzfdY6xscXSNNt5Mvrbd6go-?cdstubs=no&inc=artist-credits%2Blabels%2Brecordings%20isrcs%20discids
gives an error:
discids is not a valid option for the inc parameter for the discid resource unless you specify one of the following other inc parameters: releases
which is contrary to http://musicbrainz.org/doc/XML_Web_Service/Version_2
'A discid lookup returns a list of associated releases, the 'inc=' arguments supported are identical to a lookup request for a release.'
If I attempt to add 'releases' to inc as specified:
http://musicbrainz.org/ws/2/discid/ukDFYzfdY6xscXSNNt5Mvrbd6go-?cdstubs=no&inc=artist-credits%2Blabels%2Brecordings%20isrcs%20discids%20releases
I get the error:
'releases is not a valid inc parameter for the discid resource.'
Huh?
How should I be retrieving a disc ID from the web service, such that I know which track list matches the disc? At the moment, it seems I have to do two queries; one by disc ID to get the release ID, then a release ID query which I then filter manually by disc ID. Should there not be a simpler way in which we just get the result from the disc ID query? Should a disc ID query not just return a medium?