API Subsonic: added search methods

This commit is contained in:
emeric
2019-04-06 15:02:59 +02:00
parent f83c1e2274
commit 1f344aaaae
4 changed files with 82 additions and 57 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ Response::write(std::ostream& os, ResponseFormat format)
// property_tree does not support empty json array
std::ostringstream oss;
boost::property_tree::write_json(oss, root);
os << std::regex_replace(oss.str(), std::regex {R"(\[[\r\n]*\s*\"\"[\r\n]*\s*\])"}, R"(\{\})");
os << std::regex_replace(oss.str(), std::regex {R"(\[[\r\n]*\s*\"\"[\r\n]*\s*\])"}, R"({})");
break;
}
}