Make Tekstowo scraper more specific

This commit is contained in:
ybnd 2022-01-10 19:03:36 +01:00
parent 2fea53c34d
commit 3f896ab281

View file

@ -488,11 +488,11 @@ class Tekstowo(Backend):
if not soup:
return None
lyrics_div = soup.find("div", class_="song-text")
lyrics_div = soup.select("div.song-text > div.inner-text")
if not lyrics_div:
return None
return lyrics_div.get_text()
return lyrics_div[0].get_text()
def remove_credits(text):