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
commit ed695f20a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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):