Skip to content

Commit

Permalink
lyricwiki: strip html tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ronie committed Oct 2, 2012
1 parent bbe5979 commit fd6ef4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script.cu.lyrics/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.cu.lyrics"
name="CU Lyrics"
version="2.1.0"
version="2.1.1"
provider-name="Nuka1195,amet,ronie">
<requires>
<import addon="xbmc.python" version="2.0"/>
Expand Down
3 changes: 3 additions & 0 deletions script.cu.lyrics/changelog.txt
@@ -1,3 +1,6 @@
2.1.1
- lyricwiki: strip html tags

2.1.0
- fixed: smooth scrolling setting didn't work
- fixed lyrictime scraper: replace spaces with dashes
Expand Down
Expand Up @@ -39,7 +39,8 @@ def get_lyrics_thread(self, song):
try:
lyricscode = (matchcode.group(1))
htmlparser = HTMLParser.HTMLParser()
l.lyrics = htmlparser.unescape(lyricscode).replace('<br />', '\n')
lyricstext = htmlparser.unescape(lyricscode).replace('<br />', '\n')
l.lyrics = re.sub('<[^<]+?>', '', lyricstext)
l.source = __title__
return l, None, __service__
except:
Expand Down

0 comments on commit fd6ef4e

Please sign in to comment.