mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-28 09:10:58 +01:00
Don't use lyrics from AudD if title and artist don't match
This commit is contained in:
parent
e62fb964ff
commit
f202cf6988
@ -119,6 +119,7 @@ void AuddLyricsProvider::HandleSearchReply(QNetworkReply *reply, quint64 id, con
|
||||
LyricsSearchResult result;
|
||||
result.artist = json_obj["artist"].toString();
|
||||
result.title = json_obj["title"].toString();
|
||||
if (result.artist.toLower() != artist.toLower() && result.title.toLower() != title.toLower()) continue;
|
||||
result.lyrics = json_obj["lyrics"].toString();
|
||||
if (result.lyrics.length() > kMaxLength) continue;
|
||||
if (result.lyrics == "error") continue;
|
||||
|
Loading…
Reference in New Issue
Block a user