diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 46a6e53c4b..2ef1ac2f30 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -445,7 +445,9 @@ class Html: #: (paroles.net, sweetslyrics.com, lacoccinelle.net) merge_lines = partial(re.compile(r"

\s+]*>(?!___)").sub, "\n") #: remove empty divs (lacoccinelle.net) - remove_empty_divs = partial(re.compile(r"]*>\s*").sub, "") + remove_empty_tags = partial( + re.compile(r"(<(div|span)[^>]*>\s*)").sub, "" + ) #: remove Google Ads tags (musica.com) remove_aside = partial(re.compile("