Allow cover search only using either artist, album or title

This commit is contained in:
Jonas Kvinge
2020-08-07 00:18:31 +02:00
parent 01481da773
commit 19f69e9e6c
8 changed files with 47 additions and 23 deletions

View File

@@ -91,6 +91,8 @@ bool DiscogsCoverProvider::StartSearch(const QString &artist, const QString &alb
Q_UNUSED(title);
if (artist.isEmpty() || album.isEmpty()) return false;
std::shared_ptr<DiscogsCoverSearchContext> search = std::make_shared<DiscogsCoverSearchContext>(id, artist, album);
requests_search_.insert(search->id, search);