From c36484e42315ff42e870481ae4be8717e89e291d Mon Sep 17 00:00:00 2001 From: SwimmingLiu Date: Mon, 16 Sep 2024 00:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=88=AC=E5=8F=96=E5=88=B0=E7=9A=84=E8=AF=B4=E8=AF=B4=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=9B=BF=E6=8D=A2=E4=B8=BA=E9=AB=98=E6=B8=85=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index c058fc3..c5aacde 100644 --- a/main.py +++ b/main.py @@ -75,6 +75,9 @@ def render_html(shuoshuo_path, zhuanfa_path): image_html = '
' for img_url in img_url_lst: if img_url and img_url.startswith('http'): + # 将图片替换为高清图 + img_url = str(img_url).replace("/m&ek=1&kp=1", "/s&ek=1&kp=1") + img_url = str(img_url).replace(r"!/m/", "!/s/") image_html += f'图片\n' image_html += "
" comment_html = ""