Consolidate handling of artist joinphrases

This commit is contained in:
Claudio Ortolina
2026-03-19 15:09:34 +00:00
parent 7d55dfd9ae
commit 715a1e1f69
4 changed files with 9 additions and 11 deletions
@@ -20,7 +20,10 @@ defmodule MusicBrainz.ReleaseGroupSearchResult do
id: rg["id"],
type: ReleaseGroup.parse_type(rg["primary-type"]),
title: rg["title"],
artists: Enum.map_join(rg["artist-credit"], ", ", fn ac -> ac["artist"]["name"] end),
artists:
Enum.map_join(rg["artist-credit"], fn ac ->
ac["artist"]["name"] <> (ac["joinphrase"] || "")
end),
release_date: rg["first-release-date"]
}
end