Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1223

/1/metadata/lookup should return array for "artist_mbids"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • API
    • None

      For recordings with multiple artists credited the /1/metadata/lookup endpoint does not return an array for "artist_mbids"

      Example: https://api.listenbrainz.org/1/metadata/lookup/?artist_name=Airghoul&recording_name=Orange%20Forest

      Expected result:

       

      {
        "artist_credit_name": "Airghoul feat. Priest",
        "artist_mbids": [
          "554a5819-6c3f-4734-ae4c-11eabb7ca2e0",
          "56ff293f-ec9a-4741-9d14-0537c4fb8f97"
        ],
        "recording_mbid": "3f2bdbbd-063e-478c-a394-6da0cb303302",
        "recording_name": "Orange Forest",
        "release_mbid": "fb7d69d6-0b4b-4f99-a77a-c3a0d786b52c",
        "release_name": "Orange Forest"
      }

      Actual result:

      {
        "artist_credit_name": "Airghoul feat. Priest",
        "artist_mbids": "{554a5819-6c3f-4734-ae4c-11eabb7ca2e0,56ff293f-ec9a-4741-9d14-0537c4fb8f97}",
        "recording_mbid": "3f2bdbbd-063e-478c-a394-6da0cb303302",
        "recording_name": "Orange Forest",
        "release_mbid": "fb7d69d6-0b4b-4f99-a77a-c3a0d786b52c",
        "release_name": "Orange Forest"
      }

       

      This works if there is only a single artist credited, e.g. https://api.listenbrainz.org/1/metadata/lookup/?artist_name=Michiel%20van%20den%20Bos&recording_name=Home%20Base%20(UNATCO) does return an array (with a single value)

       

            kartik1712 amCap1712
            outsidecontext Philipp Wolfer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package