Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10185

/ws/2/isrc/<isrc>?fmt=json ignores inc=artists and inc=releases, where fmt=xml does not

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Web service
    • None

      The documentation for the /isrc endpoint states:

      isrc lookups return a list of recordings, the 'inc=' arguments supported are identical to a lookup request for a recording.

      Unfortunately this doesn't work when fmt=json is added to the query, at least not for artists and releases. Compare the (default fmt=xml response with the JSON response:

      and, for reference, the recording this ISRC is attached to:

      In the XML-formatted response, theĀ <recording id="7b6873d9-c7c5-4568-884f-96660e8e4528"> element contains the exact same information in both responses, the only difference being that the /isrc response has wrapped that element inside the <isrc id="USAR19200262"><recording-list count="1">...</recording-list></isrc> structure.

      Strangely enough, /isrc/<isrc>?fmt=json&inc=isrcs works (the isrcs array is added to the release object), but not when asking for an XML response. Then the service just.. hangs until it times out. Perhaps a related issue?

            Unassigned Unassigned
            mjpieters Martijn Pieters
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package