diff --git a/src/libs/subsonic/impl/SubsonicResource.cpp b/src/libs/subsonic/impl/SubsonicResource.cpp index 056005c5..a1f78af0 100644 --- a/src/libs/subsonic/impl/SubsonicResource.cpp +++ b/src/libs/subsonic/impl/SubsonicResource.cpp @@ -470,22 +470,20 @@ releaseToResponseNode(const Release::pointer& release, Session& dbSession, const } else if (!artists.empty()) { - if (artists.size() > 1) - { - albumNode.setAttribute("artist", "Various Artists"); + albumNode.setAttribute("artist", getArtistNames(artists)); - if (!id3) - albumNode.setAttribute("parent", IdToString({Id::Type::Root})); - } - else + if (artists.size() == 1) { - albumNode.setAttribute("artist", artists.front()->getName()); - if (id3) albumNode.setAttribute("artistId", IdToString({Id::Type::Artist, artists.front().id()})); else albumNode.setAttribute("parent", IdToString({Id::Type::Artist, artists.front().id()})); } + else + { + if (!id3) + albumNode.setAttribute("parent", IdToString({Id::Type::Root})); + } } if (id3)