mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-08 06:14:10 +01:00
GeniusLyricsProvider: Move index past start tag
This commit is contained in:
parent
353e141036
commit
61ac7ae31e
@ -517,6 +517,7 @@ void GeniusLyricsProvider::HandleLyricReply(QNetworkReply *reply, const int sear
|
|||||||
if (rematch.hasMatch()) {
|
if (rematch.hasMatch()) {
|
||||||
begin_idx = content.indexOf(rematch.captured());
|
begin_idx = content.indexOf(rematch.captured());
|
||||||
if (begin_idx > 0) {
|
if (begin_idx > 0) {
|
||||||
|
begin_idx += rematch.captured().length();
|
||||||
qint64 end_idx = content.indexOf("</div>", begin_idx + rematch.captured().length());
|
qint64 end_idx = content.indexOf("</div>", begin_idx + rematch.captured().length());
|
||||||
if (end_idx > 0) {
|
if (end_idx > 0) {
|
||||||
QString text = content.mid(begin_idx, end_idx - begin_idx);
|
QString text = content.mid(begin_idx, end_idx - begin_idx);
|
||||||
|
Loading…
Reference in New Issue
Block a user