From 1e8211b9f4e5fc7b7ec9e822307ffe8e12fb428b Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 9 Dec 2021 10:23:39 +0100 Subject: [PATCH] try to use readability.js --- screenless/bureau/publications/publications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index 54518e6..1f3e20b 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -232,7 +232,7 @@ class Publications(Bureau): footnote.append(lxml.html.fromstring(svg)) html.append(footnote) - self.print_full("article.html", title=doc.title(), + self.print_full("article.html", title=doc["title"], article=lxml.html.tostring(html).decode("utf-8"), url=url, date=timestamp)