提交 61438e71 编写于 作者: W wizardforcel

2022-03-16 00:03:44

上级 1efb8114
......@@ -161,7 +161,7 @@ def main():
art = {}
articles.append(art)
hdl = text_pool.submit(tr_download_page, url, art, imgs)
hdl = text_pool.submit(tr_download_page_safe, url, art, imgs)
hdls.append(hdl)
......
......@@ -86,7 +86,7 @@ def process_img(html, imgs, **kw):
picname = hashlib.md5(url.encode('utf-8')).hexdigest() + '.png'
print(f'pic: {url} => {picname}')
if picname not in imgs:
hdl = img_pool.submit(tr_download_img, url, imgs, picname)
hdl = img_pool.submit(tr_download_img_safe, url, imgs, picname)
hdls.append(hdl)
el_img.attr('src', kw['img_prefix'] + picname)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册