diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 08efd38ff..84fe6c6bb 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -291,14 +291,25 @@ class MusiXmatch(Backend): self._log.warning(u'we are blocked at MusixMatch: url %s failed' % url) return - html_part = html.split('
1: + html_part1 = html_parts[-2] + lyrics_part1 = extract_text_between(html_part1, '>', '
') + else: + lyrics_part1 = '' + html_part2 = html_parts[-1] + lyrics_part2 = extract_text_between(html_part2, '>', '') + lyrics = lyrics_part1 + '\n' + lyrics_part2 lyrics = lyrics.strip(',"').replace('\\n', '\n') # another odd case: sometimes only that string remains, for # missing songs. this seems to happen after being blocked # above, when filling in the CAPTCHA. if "Instant lyrics for all your music." in lyrics: return + # sometimes there are non-existent lyrics with some content + if 'Think is wrong? You can always add the lyrics' in lyrics: + return return lyrics