diff --git a/src/libs/subsonic/impl/endpoints/Browsing.cpp b/src/libs/subsonic/impl/endpoints/Browsing.cpp index 9f8ba747..b848f9c0 100644 --- a/src/libs/subsonic/impl/endpoints/Browsing.cpp +++ b/src/libs/subsonic/impl/endpoints/Browsing.cpp @@ -548,7 +548,17 @@ namespace lms::api::subsonic ArtistInfo::find(context.dbSession, id, Range{ .offset = 0, .size = 1 }, [&](const ArtistInfo::pointer& artistInfo) { if (!artistInfo->getBiography().empty()) - artistInfoNode.setAttribute("biography", artistInfo->getBiography()); + { + switch (context.responseFormat) + { + case ResponseFormat::json: + artistInfoNode.setAttribute("biography", artistInfo->getBiography()); + break; + case ResponseFormat::xml: + artistInfoNode.createChild("biography").setValue(artistInfo->getBiography()); + break; + } + } }); }