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
@@ -126,7 +126,7 @@ getQuery(Wt::Dbo::Session& session,
std::vector<Artist::pointer>
Artist::getByFilter(Wt::Dbo::Session& session,
const std::set<IdType>& clusters,
const std::vector<std::string> keywords,
const std::vector<std::string>& keywords,
boost::optional<std::size_t> offset,
boost::optional<std::size_t> size,
bool& moreResults)
+1 -1
View File
@@ -52,7 +52,7 @@ class Artist : public Wt::Dbo::Dbo<Artist>
static std::vector<pointer> getByName(Wt::Dbo::Session& session, const std::string& name);
static std::vector<pointer> getByFilter(Wt::Dbo::Session& session,
const std::set<IdType>& clusters, // at least one track that belongs to these clusters
const std::vector<std::string> keywords, // name must match all of these keywords
const std::vector<std::string>& keywords, // name must match all of these keywords
boost::optional<std::size_t> offset,
boost::optional<std::size_t> size,
bool& moreExpected);