mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 07:48:03 -06:00
Merge pull request #3994 from matlads/patch-2
return None for lyrics if Tekstowo fails to extract lyrics
This commit is contained in:
+4
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user