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))