mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
lyrics: remove duplicate check for beautifulsoup
The plugin already disables these sources entirely when beautifulsoup is not available
This commit is contained in:
parent
867d383544
commit
038cebfa9b
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue