From 44e4d558c97271244091e8541336454129b0622c Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Sun, 12 Jul 2020 22:18:30 +0200 Subject: [PATCH] lyrics: fix bad_triggers in the google plugin regression from 117d16f --- beetsplug/lyrics.py | 2 +- docs/changelog.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 81040af3a..16696d425 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -563,7 +563,7 @@ class Google(Backend): bad_triggers = ['lyrics', 'copyright', 'property', 'links'] if artist: - bad_triggers_occ += [artist] + bad_triggers += [artist] for item in bad_triggers: bad_triggers_occ += [item] * len(re.findall(r'\W%s\W' % item, diff --git a/docs/changelog.rst b/docs/changelog.rst index 6ea5ae123..0268aa2f9 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -136,6 +136,9 @@ New features: instead of just the child work. Thanks to :user:`aereaux`. :bug:`3650` +* :doc:`/plugins/lyrics`: Fix a bug in the heuristic for detecting valid + lyrics in the Google source of the lyrics plugin + :bug:`2969` Fixes: