Fix deprecated text parameter

pull/2856/head^2
Ozzie Isaacs 10 months ago
parent 7bb4bc934c
commit 3efcbcc679

@ -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 = ""

Loading…
Cancel
Save