mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Merge pull request #1956 from jackwilsdon/remove-beautifulsoup-lyricswiki
Use different method to remove junk from LyricsWiki output
This commit is contained in:
commit
6942be7590
1 changed files with 2 additions and 2 deletions
|
|
@ -334,8 +334,8 @@ class LyricsWiki(SymbolsReplaced):
|
|||
|
||||
# Get the HTML fragment inside the appropriate HTML element and then
|
||||
# extract the text from it.
|
||||
html_frag = extract_text_in(unescape(html), u"<div class='lyricbox'>")
|
||||
lyrics = scrape_lyrics_from_html(html_frag)
|
||||
html_frag = extract_text_in(html, u"<div class='lyricbox'>")
|
||||
lyrics = _scrape_strip_cruft(html_frag, True)
|
||||
|
||||
if lyrics and 'Unfortunately, we are not licensed' not in lyrics:
|
||||
return lyrics
|
||||
|
|
|
|||
Loading…
Reference in a new issue