Merge pull request #3994 from matlads/patch-2

return None for lyrics if Tekstowo fails to extract lyrics
This commit is contained in:
Benedikt
2021-07-04 00:34:11 +02:00
committed by GitHub
+4 -1
View File
@@ -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):