Subsonic API: added sortName extra field for artists
This commit is contained in:
@@ -93,12 +93,12 @@ namespace API::Subsonic
|
||||
if (const Wt::WDateTime dateTime{ Service<Scrobbling::IScrobblingService>::get()->getStarredDateTime(user->getId(), release->getId()) }; dateTime.isValid())
|
||||
albumNode.setAttribute("starred", StringUtils::toISO8601String(dateTime)); // TODO report correct date/time
|
||||
|
||||
// OpenSubsonic specific field
|
||||
// OpenSubsonic specific fields (must always be set)
|
||||
{
|
||||
std::optional<UUID> mbid {release->getMBID()};
|
||||
albumNode.setAttribute("musicBrainzId", mbid ? mbid->getAsString() : "");
|
||||
}
|
||||
|
||||
|
||||
return albumNode;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user