From 1be9c3003ef297374abd9dfc6bee00811286570f Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Mon, 25 Apr 2016 19:14:30 +0100 Subject: [PATCH] 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. --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index de9e1b313..70ce9c38b 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -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"
") - 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