mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
Filter ending newlines
This commit is contained in:
parent
30106d105c
commit
79449b0851
1 changed files with 2 additions and 0 deletions
|
|
@ -458,6 +458,8 @@ class Genius(Backend):
|
|||
for lyrics_div in lyrics_divs:
|
||||
self.replace_br(lyrics_div)
|
||||
lyrics += lyrics_div.get_text() + "\n\n"
|
||||
while lyrics[-1] == "\n":
|
||||
lyrics = lyrics[:-1]
|
||||
return lyrics
|
||||
|
||||
def _try_extracting_lyrics_from_non_data_lyrics_container(self, soup):
|
||||
|
|
|
|||
Loading…
Reference in a new issue