[mb-devel] XMLWebService: mapping from album to label

Bob Faist bob.faist at gmail.com
Wed Oct 17 03:44:57 UTC 2007


Here is the command I used and the XML returned.  I think the
difference is using the "+" character in between the "inc" parameters.

curl --get http://musicbrainz.org/ws/1/release/a0af5955-d5bf-4b39-9c53-10b163b24243
-d type=xml -d inc=release-events+labels

<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://musicbrainz.org/ns/mmd-1.0#"
                   xmlns:ext="http://musicbrainz.org/ns/ext-1.0#">
   <release id="a0af5955-d5bf-4b39-9c53-10b163b24243" type="Album Official">
       <title>United Abominations</title>
       <text-representation language="ENG" script="Latn"/>
       <asin>B000O76PEE</asin>
       <release-event-list>
      <event date="2007-05-09" country="JP"
catalog-number="RRCY-21285" barcode="4527583006725" format="CD">
            <label id="5899271b-a77a-4081-93a9-0bd05b9b4180">
                <name>Roadrunner Records</name>
                <sort-name></sort-name>
            </label>
        </event>
    </release-event-list>
  </release>
</metadata>

On 10/16/07, dazza <dazzaredgrave at gmail.com> wrote:
> I've put labels in the inc values and I still don't get anything more then
> the barcode and catalog number:
>
> curl --get
> http://musicbrainz.org/ws/1/release/a0af5955-d5bf-4b39-9c53-10b163b24243
>     -d type=xml
>     -d inc="release-events label-rels labels"
>
> results in
>
> <?xml version="1.0" encoding="UTF-8"?>
> <metadata xmlns=" http://musicbrainz.org/ns/mmd-1.0#"
>       xmlns:ext="http://musicbrainz.org/ns/ext-1.0#">
> <release id="a0af5955-d5bf-4b39-9c53-10b163b24243"
>             type="Album Official">
>     <title>
>          United Abominations
>     </title>
>     <text-representation language="ENG" script="Latn"/>
>     <asin>B000O76PEE</asin>
>     <release-event-list>
>           <event date="2007-05-09"
>                      country="JP"
>                      catalog-number="RRCY-21285"
>                      barcode="4527583006725" format="CD"/>
>       </release-event-list>
>    </release>
> </metadata>
>
>
>
>
> On 10/17/07, Bob Faist < bob.faist at gmail.com> wrote:
> >
> http://musicbrainz.org/ws/1/release/a0af5955-d5bf-4b39-9c53-10b163b24243?type=xml&inc=labels+release-events
> >
> > The "inc" parameter can include the value "labels".
> >
> > On 10/16/07, dazza < dazzaredgrave at gmail.com> wrote:
> > > hi,
> > >
> > > I've been trying to find the label for an album release using the
> > > XMLWebService. If I run this query:
> > >
> > > curl --get
> > >
> http://musicbrainz.org/ws/1/release/a0af5955-d5bf-4b39-9c53-10b163b24243
> > >
> > >       -d type=xml
> > >       -d inc="release-events label-rels discs"
> > >
> > > I see the releases with catalog-number and barcode as expected but I
> can't
> > > seem to find a way to map this information to who the Label is. Any
> ideas?
> > >
> > > I tried adding labels to the inc parameter but I don't get any more
> > > information.
> > >
> > > TIA
> > >
> > > dazza
> > >
> > >
> > > _______________________________________________
> > > MusicBrainz-devel mailing list
> > > MusicBrainz-devel at lists.musicbrainz.org
> > >
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
> > >
> >
> > _______________________________________________
> > MusicBrainz-devel mailing list
> > MusicBrainz-devel at lists.musicbrainz.org
> >
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
> >
>
>
> _______________________________________________
> MusicBrainz-devel mailing list
> MusicBrainz-devel at lists.musicbrainz.org
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
>



More information about the MusicBrainz-devel mailing list