diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 08efd38ff..125d1330d 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -291,14 +291,21 @@ class MusiXmatch(Backend): self._log.warning(u'we are blocked at MusixMatch: url %s failed' % url) return - html_part = html.split('

', '

')) + lyrics = '\n'.join(lyrics_parts) 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 'Lyrics | Musixmatch' in lyrics: + return return lyrics diff --git a/docs/changelog.rst b/docs/changelog.rst index d9e30e1fd..6aca3ac8e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -215,6 +215,8 @@ Other new things: Fixes: +* :bug:`/plugins/lyrics`: Fixed Musixmatch fetch lyrics divided into multiple elements on the web-page +* :bug:`/plugins/lyrics`: Fixed Musixmatch fetch for non-existing lyrics * :bug:`/plugins/web`: Allow use of backslash in regex web queries. :bug:`3867` * :bug:`/plugins/web`: Fixed a small bug which caused album artpath to be