diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index b55fac9a7..b6936e1be 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -347,10 +347,11 @@ class LyricsWiki(SymbolsReplaced): # Get the HTML fragment inside the appropriate HTML element and then # extract the text from it. html_frag = extract_text_in(html, u"
") - lyrics = _scrape_strip_cruft(html_frag, True) + if html_frag: + lyrics = _scrape_strip_cruft(html_frag, True) - if lyrics and 'Unfortunately, we are not licensed' not in lyrics: - return lyrics + if lyrics and 'Unfortunately, we are not licensed' not in lyrics: + return lyrics class LyricsCom(Backend):