Skip to content

Commit

Permalink
update pve.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 11, 2025
1 parent 68dcd3c commit 7b26724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nonebot_plugin_fortnite/pve.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ async def screenshot_vb_img() -> Path:
# 截图函数,超时则跳过
async def take_screenshot(locator, path):
try:
await locator.scroll_into_view_if_needed()

# 检查元素内容是否为空
content = await locator.inner_html()
if content.strip(): # 如果内容不为空
Expand Down Expand Up @@ -62,6 +60,8 @@ def combine_imgs():
if img_path.exists():
images.append(Image.open(img_path))

if not images:
return
# 获取尺寸并创建新图像
widths, heights = zip(*(img.size for img in images))
total_width = max(widths)
Expand Down

0 comments on commit 7b26724

Please sign in to comment.