mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 23:43:31 +01:00
Merge branch 'lyrics'
This commit is contained in:
commit
8eabbf64cc
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ def extract_text(html, starttag):
|
|||
lyrics = re.sub(r'\n +', '\n', lyrics)
|
||||
lyrics = re.sub(r' +\n', '\n', lyrics)
|
||||
lyrics = TAG_RE.sub('', lyrics) # Strip remaining HTML tags.
|
||||
lyrics = lyrics.replace('\r','\n')
|
||||
lyrics = lyrics.strip()
|
||||
return lyrics
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue