mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 01:25:47 +01:00
Use different method to remove junk from LyricsWiki
Use `_scrape_strip_cruft` instead of `scrape_lyrics_from_html` so that LyricsWiki does not depend on Beautiful Soup.
This commit is contained in:
parent
3c10be1176
commit
1be9c3003e
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ 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)
|
||||
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