lyrics: remove duplicate check for beautifulsoup

The plugin already disables these sources entirely when beautifulsoup is
not available
This commit is contained in:
wisp3rwind 2021-06-15 10:34:59 +02:00
parent 867d383544
commit 038cebfa9b

View file

@ -448,9 +448,6 @@ class Tekstowo(Backend):
return self.extract_lyrics(song_page_html) return self.extract_lyrics(song_page_html)
def parse_search_results(self, html): def parse_search_results(self, html):
if not HAS_BEAUTIFUL_SOUP:
return None
html = _scrape_strip_cruft(html) html = _scrape_strip_cruft(html)
html = _scrape_merge_paragraphs(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 """Scrape lyrics from a URL. If no lyrics can be found, return None
instead. instead.
""" """
if not HAS_BEAUTIFUL_SOUP:
return None
def is_text_notcode(text): def is_text_notcode(text):
length = len(text) length = len(text)
return (length > 20 and return (length > 20 and