Fix error handling when parsing lyrics from LyricsWikia

This commit is contained in:
Martchus 2017-08-08 20:02:39 +02:00
parent c64791e10f
commit fe4e6ff02d
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ void LyricsWikiaResultsModel::parseLyricsResults(int row, const QByteArray &data
// parse lyrics from HTML
const int lyricsStart = html.indexOf(QLatin1String("<div class='lyricbox'>"));
if(lyricsStart > 0) {
if(lyricsStart < 0) {
m_errorList << tr("Song details requested for %1/%2 do not contain lyrics").arg(assocDesc.artist, assocDesc.title);
setResultsAvailable(true);
return;