-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
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)