fix: 修复作品类型判断不完整的问题

Closes #268
This commit is contained in:
Quan
2025-07-16 14:55:02 +08:00
parent 4d77a12cd9
commit 87044f150b
2 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
from asyncio import run
from pyperclip import paste
from httpx import post
from rich import print
@@ -92,7 +92,9 @@ async def example_api():
async def test():
url = ""
url = "" or paste()
if not url:
return
async with XHS(
download_record=False,
# image_format="PNG",

View File

@@ -87,7 +87,10 @@ class Download:
filename,
log,
)
elif type_ == _("图文"):
elif type_ in {
_("图文"),
_("图集"),
}:
tasks = self.__ready_download_image(
urls,
lives,