Add songlyrics.com lyrics provider

This commit is contained in:
Jonas Kvinge
2023-09-19 16:56:10 +02:00
parent ce627b0e18
commit 39f9d02454
9 changed files with 205 additions and 4 deletions

View File

@@ -74,6 +74,8 @@ QString LyricsProvider::ParseLyricsFromHTML(const QString &content, const QRegul
lyrics.append("\n");
}
lyrics.append(content.mid(start_lyrics_idx, end_lyrics_idx - start_lyrics_idx)
.remove('\r')
.remove('\n')
.replace(QRegularExpression("<br[^>]*>"), "\n")
.remove(QRegularExpression("<[^>]*>"))
.trimmed());