From bf0d6ccdf00b4a2d4444bc844f8e43111373d197 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 3 Sep 2022 23:12:04 +0800 Subject: [PATCH] update --- gspanel/data_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gspanel/data_source.py b/gspanel/data_source.py index 9530ece..4543c42 100644 --- a/gspanel/data_source.py +++ b/gspanel/data_source.py @@ -551,10 +551,10 @@ async def getPanelMsg(uid: str, char: str = "all", refresh: bool = False) -> Dic try: page = await browser.new_page() await page.set_viewport_size({"width": 1000, "height": 1500}) - await page.goto("file://" + str(tmpFile.resolve()), timeout=5000) + await page.goto("file://" + str(tmpFile.resolve()), timeout=50000) card = await page.query_selector("body") assert card is not None - picBytes = await card.screenshot(timeout=5000) + picBytes = await card.screenshot(timeout=50000) bio = io.BytesIO(picBytes) bio.name = "card.png" print(f"图片大小 {len(picBytes)} 字节")