Skip to content

Commit

Permalink
Subsonic API: added album artists for albums
Browse files Browse the repository at this point in the history
  • Loading branch information
epoupon committed Oct 4, 2023
1 parent a359e4a commit c2406bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/subsonic/impl/responses/Album.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ namespace API::Subsonic

addClusters("genres", "GENRE");
addClusters("moods", "MOOD");

albumNode.createEmptyArrayChild("artists");
for (const Artist::pointer& artist : release->getReleaseArtists() )
albumNode.addArrayChild("artists", createArtistNode(artist));

return albumNode;
}
Expand Down

0 comments on commit c2406bb

Please sign in to comment.