Skip to content

Commit

Permalink
Merge pull request #1912 from jackwilsdon/fix-lyricswiki-parsing
Browse files Browse the repository at this point in the history
Fix LyricsWiki scraping code
  • Loading branch information
sampsyo committed Mar 18, 2016
2 parents 8a0b18c + 6014891 commit 017b9cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beetsplug/lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def fetch(self, artist, title):
html = self.fetch_url(url)
if not html:
return
lyrics = extract_text_in(html, u"<div class='lyricbox'>")
lyrics = extract_text_in(unescape(html), u"<div class='lyricbox'>")
lyrics = scrape_lyrics_from_html(lyrics)
if lyrics and 'Unfortunately, we are not licensed' not in lyrics:
return lyrics

Expand Down

0 comments on commit 017b9cf

Please sign in to comment.