提交 a10bdb9d 编写于 作者: W wizardforcel

2021-09-24 13:52:41

上级 da3ff6bb
......@@ -29,7 +29,7 @@ def get_toc_from_cfg():
headers=config['headers'],
timeout=config['timeout'],
proxies=config['proxy'],
).content.decode(config['encoding'])
).content.decode(config['encoding'], 'ignore')
return get_toc(html, config['url'])
def get_toc(html, base):
......@@ -91,7 +91,7 @@ def tr_download_page(url, art, imgs):
headers=config['headers'],
timeout=config['timeout'],
proxies=config['proxy'],
).content.decode(config['encoding'])
).content.decode(config['encoding'], 'ignore')
art.update(get_article(html, url))
art['content'] = process_img(
art['content'], imgs,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册