From 61ac7ae31efa86b0016b0fbd2294c4e1b43a2e4a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 2 Jan 2022 21:47:16 +0100 Subject: [PATCH] GeniusLyricsProvider: Move index past start tag --- src/lyrics/geniuslyricsprovider.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lyrics/geniuslyricsprovider.cpp b/src/lyrics/geniuslyricsprovider.cpp index c5ab0e9e8..e348955f5 100644 --- a/src/lyrics/geniuslyricsprovider.cpp +++ b/src/lyrics/geniuslyricsprovider.cpp @@ -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("", begin_idx + rematch.captured().length()); if (end_idx > 0) { QString text = content.mid(begin_idx, end_idx - begin_idx);