From cb559f0c5b4a96d2851f9a8e15c882971014d1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 26 Oct 2024 17:31:48 +0100 Subject: [PATCH] Google: add support for dainuzodziai.lt --- beetsplug/lyrics.py | 7 +++++-- test/plugins/lyrics_pages.py | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) 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("