From 038cebfa9bed3c8463e84a83ced0a4ba408794c8 Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Tue, 15 Jun 2021 10:34:59 +0200 Subject: [PATCH] lyrics: remove duplicate check for beautifulsoup The plugin already disables these sources entirely when beautifulsoup is not available --- beetsplug/lyrics.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 127a94a07..3a746bdd2 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -448,9 +448,6 @@ class Tekstowo(Backend): return self.extract_lyrics(song_page_html) def parse_search_results(self, html): - if not HAS_BEAUTIFUL_SOUP: - return None - html = _scrape_strip_cruft(html) html = _scrape_merge_paragraphs(html) @@ -527,9 +524,6 @@ def scrape_lyrics_from_html(html): """Scrape lyrics from a URL. If no lyrics can be found, return None instead. """ - if not HAS_BEAUTIFUL_SOUP: - return None - def is_text_notcode(text): length = len(text) return (length > 20 and