Subsonic API: added 'contributor' in song entries

This commit is contained in:
emeric
2023-10-04 18:51:38 +02:00
parent 8f29410670
commit 4f25331e1d
8 changed files with 122 additions and 17 deletions
+10 -1
View File
@@ -73,6 +73,15 @@ namespace API::Subsonic
_children[key].emplace_back(std::move(node));
}
void Response::Node::createEmptyArrayChild(const std::string& key)
{
if (_value)
throw LmsException{ "Node already has a value" };
_childrenArrays.emplace(key, std::vector<Node>{});
}
void Response::Node::addArrayChild(const std::string& key, Node node)
{
if (_value)
@@ -81,7 +90,7 @@ namespace API::Subsonic
_childrenArrays[key].emplace_back(std::move(node));
}
void Response::Node::createArrayValue(const std::string& key)
void Response::Node::createEmptyArrayValue(const std::string& key)
{
if (_value)
throw LmsException{ "Node already has a value" };