mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Merge pull request #1912 from jackwilsdon/fix-lyricswiki-parsing
Fix LyricsWiki scraping code
This commit is contained in:
commit
017b9cf592
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,8 @@ class LyricsWiki(SymbolsReplaced):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue