Stands4LyricsProvider: Finish search when no lyrics are found

This commit is contained in:
Jonas Kvinge 2023-01-21 15:55:45 +01:00
parent 93af064b36
commit 4717d783dc
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ void Stands4LyricsProvider::HandleSearchReply(QNetworkReply *reply, const int id
const QString lyrics = ParseLyricsFromHTML(QString::fromUtf8(data), QRegularExpression("<div[^>]*>"), QRegularExpression("<\\/div>"), QRegularExpression("<div id=\"lyrics\"[^>]+>"), false);
if (lyrics.isEmpty() || lyrics.contains("Click to search for the Lyrics on Lyrics.com", Qt::CaseInsensitive)) {
qLog(Debug) << "Stands4Lyrics: No lyrics for" << artist << title;
emit SearchFinished(id, LyricsSearchResults());
return;
}