mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Merge pull request #3994 from matlads/patch-2
return None for lyrics if Tekstowo fails to extract lyrics
This commit is contained in:
commit
ed695f20a1
1 changed files with 4 additions and 1 deletions
|
|
@ -483,7 +483,10 @@ class Tekstowo(Backend):
|
|||
if not soup:
|
||||
return None
|
||||
|
||||
return soup.find("div", class_="song-text").get_text()
|
||||
c = soup.find("div", class_="song-text")
|
||||
if c:
|
||||
return c.get_text()
|
||||
return None
|
||||
|
||||
|
||||
def remove_credits(text):
|
||||
|
|
|
|||
Loading…
Reference in a new issue