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

@@ -297,12 +297,8 @@ bool QobuzCoverProvider::StartSearch(const QString &artist, const QString &album
if (artist.isEmpty() && album.isEmpty() && title.isEmpty()) return false;
QString query;
if (!artist.isEmpty()) {
query.append(artist);
}
QString resource;
QString query = artist;
if (album.isEmpty() && !title.isEmpty()) {
resource = "track/search";
if (!query.isEmpty()) query.append(" ");