From 47e7ade2f7479b0f39f5609540f2938d5fba5c2e Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 3 Mar 2025 15:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=88=86=E9=A1=B5=EF=BC=8C?= =?UTF-8?q?=E9=80=86=E5=BA=8F=E6=8E=92=E5=88=97=E5=B8=96=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sehuatang/shehuatang.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sehuatang/shehuatang.py b/sehuatang/shehuatang.py index fe16a4f..1b1b4c1 100644 --- a/sehuatang/shehuatang.py +++ b/sehuatang/shehuatang.py @@ -124,13 +124,13 @@ def fetch_and_create_pdf(url): # 添加标题 content.append(Paragraph(f" {post_title}", title_style)) - content.append(Spacer(1, 12)) + content.append(Spacer(1, 5)) # 添加磁力链接 if magnet_links: for magnet_link in magnet_links: content.append(Paragraph(f"
{magnet_link}
", normal_style)) - content.append(Spacer(1, 12)) + content.append(Spacer(1, 5)) # 添加图片 image_links = [] @@ -145,7 +145,7 @@ def fetch_and_create_pdf(url): if image: img = PILImage.open(image) img_width, img_height = img.size - image_width = 500 + image_width = 450 image_height = int((img_height / img_width) * image_width) img_stream = BytesIO(image.getvalue()) content.append(Image(img_stream, width=image_width, height=image_height))