1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-28 01:01:21 +01:00

Don't use lyrics from AudD if title and artist don't match

This commit is contained in:
Jonas Kvinge 2018-09-11 00:01:17 +02:00
parent e62fb964ff
commit f202cf6988

View File

@ -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;