readabilite: add debug option (also used by :get)

This commit is contained in:
2020-04-09 19:08:13 +02:00
parent 63a06524b7
commit a32f5a8536
2 changed files with 7 additions and 6 deletions

View File

@@ -661,7 +661,7 @@ def cgi_get(environ, start_response):
output = lxml.etree.tostring(html.getroottree(), encoding='utf-8')
elif options.get == 'article':
output = readabilite.get_article(data, url=con.geturl(), encoding=encoding)
output = readabilite.get_article(data, url=con.geturl(), encoding=encoding, debug=options.debug)
else:
raise MorssException('no :get option passed')