Fallback on the cluster similarity searcher if no song is classified

This commit is contained in:
emeric
2019-04-19 13:01:57 +02:00
parent 89ce9ab6c6
commit 0aef48f3bc
3 changed files with 11 additions and 2 deletions
@@ -43,8 +43,9 @@ class FeaturesSearcher
bool isValid() const;
bool isTrackClassified(Database::IdType trackId) const;
bool isReleaseClassified(Database::IdType releaseId) const;
bool isArtistClassified(Database::IdType releaseId) const;
bool isArtistClassified(Database::IdType artistId) 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;