1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-25 22:53:17 +00:00

Fix deprecated text parameter

This commit is contained in:
Ozzie Isaacs 2023-07-30 07:44:16 +02:00
parent 7bb4bc934c
commit 3efcbcc679

View File

@ -98,7 +98,7 @@ class Amazon(Metadata):
try:
match.authors = [next(
filter(lambda i: i != " " and i != "\n" and not i.startswith("{"),
x.findAll(text=True))).strip()
x.findAll(string=True))).strip()
for x in soup2.findAll("span", attrs={"class": "author"})]
except (AttributeError, TypeError, StopIteration):
match.authors = ""