Commit bceb2f30 authored by Andrea Scarpino's avatar Andrea Scarpino

Fix Genius

parent b43e4d90
......@@ -148,7 +148,7 @@ void GeniusAPI::onGetLyricPageResult()
page.settings()->setAttribute(QWebSettings::JavascriptEnabled, false);
page.mainFrame()->setHtml(reply->readAll());
QWebElement lyricbox = page.mainFrame()->findFirstElement("div[class=lyrics]");
QWebElement lyricbox = page.mainFrame()->findFirstElement("lyrics[class=lyrics]");
if (lyricbox.isNull()) {
qCritical() << "Cannot find lyric text in HTML page";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment