From 87caf074957cc43dc4f2a6524a40f4453a898201 Mon Sep 17 00:00:00 2001 From: GokoRuri Date: Wed, 30 Jul 2025 21:14:37 +0800 Subject: [PATCH] fix: #685 --- tools/crawler_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/crawler_util.py b/tools/crawler_util.py index 198234f..d0c65c9 100644 --- a/tools/crawler_util.py +++ b/tools/crawler_util.py @@ -24,7 +24,7 @@ from io import BytesIO from typing import Dict, List, Optional, Tuple, cast import httpx -from PIL import Image, ImageDraw +from PIL import Image, ImageDraw, ImageShow from playwright.async_api import Cookie, Page from . import utils @@ -88,6 +88,7 @@ def show_qrcode(qr_code) -> None: # type: ignore new_image.paste(image, (10, 10)) draw = ImageDraw.Draw(new_image) draw.rectangle((0, 0, width + 19, height + 19), outline=(0, 0, 0), width=1) + del ImageShow.UnixViewer.options["save_all"] new_image.show()