mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-13 15:19:29 +01:00
Lyrics module now strips out html tags
This commit is contained in:
@@ -39,6 +39,7 @@ def getLyrics(artist, song):
|
||||
m = re.compile('''<div class='lyricbox'><div class='rtMatcher'>.*?</div>(.*?)<!--''').search(lyricspage)
|
||||
|
||||
lyrics = convert_html_entities(m.group(1)).replace('<br />', '\n')
|
||||
lyrics = re.sub('<.*?>', '', lyrics)
|
||||
|
||||
return lyrics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user