GeniusLyricsProvider: Move index past start tag

This commit is contained in:
Jonas Kvinge 2022-01-02 21:47:16 +01:00
parent 353e141036
commit 61ac7ae31e
1 changed files with 1 additions and 0 deletions

View File

@ -517,6 +517,7 @@ void GeniusLyricsProvider::HandleLyricReply(QNetworkReply *reply, const int sear
if (rematch.hasMatch()) {
begin_idx = content.indexOf(rematch.captured());
if (begin_idx > 0) {
begin_idx += rematch.captured().length();
qint64 end_idx = content.indexOf("</div>", begin_idx + rematch.captured().length());
if (end_idx > 0) {
QString text = content.mid(begin_idx, end_idx - begin_idx);