Similarity: fallback on tags if the artist or release has no track containing features

This commit is contained in:
emeric
2019-03-21 13:06:25 +01:00
parent 37e87ccc1c
commit 368766974e
3 changed files with 21 additions and 2 deletions
@@ -43,6 +43,9 @@ class FeaturesSearcher
bool isValid() const;
bool isReleaseClassified(Database::IdType releaseId) const;
bool isArtistClassified(Database::IdType releaseId) const;
std::vector<Database::IdType> getSimilarTracks(const std::set<Database::IdType>& tracksId, std::size_t maxCount) const;
std::vector<Database::IdType> getSimilarReleases(Database::IdType releaseId, std::size_t maxCount) const;
std::vector<Database::IdType> getSimilarArtists(Database::IdType artistId, std::size_t maxCount) const;