diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 448399fe0..a2ebe7c36 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -90,7 +90,7 @@ def extract_text_between(html, start_marker, end_marker): html, _ = html.split(end_marker, 1) except ValueError: return u'' - return _scrape_strip_cruft(html, True) + return html def extract_text_in(html, starttag): @@ -124,8 +124,7 @@ def extract_text_in(html, starttag): else: print('no closing tag found!') return - lyrics = ''.join(parts) - return _scrape_strip_cruft(lyrics, True) + return u''.join(parts) def search_pairs(item): @@ -221,7 +220,7 @@ def fetch_lyricswiki(artist, title): if not html: return - lyrics = extract_text_in(html, "
]*)>', '\n', html) + html = re.sub(r'
\s*]*)>', '\n', html) + return re.sub(r'