From 3efcbcc6797e4e4faf4b611985087b247552ccc1 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 30 Jul 2023 07:44:16 +0200 Subject: [PATCH] Fix deprecated text parameter --- cps/metadata_provider/amazon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/metadata_provider/amazon.py b/cps/metadata_provider/amazon.py index a83747e6..30291a3f 100644 --- a/cps/metadata_provider/amazon.py +++ b/cps/metadata_provider/amazon.py @@ -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 = ""