fix(XHS-Downloader.js): 重构作品链接提取功能

Closes #179
This commit is contained in:
JoeanAmier
2024-09-24 20:10:28 +08:00
parent 2042afcd1e
commit 1698e1c792
5 changed files with 13 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
from asyncio import Semaphore
from asyncio import gather
from pathlib import Path
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Any
from aiofiles import open
from httpx import HTTPError
@@ -60,7 +60,7 @@ class Download:
type_: str,
log,
bar,
) -> tuple[Path, tuple[bool, ...]]:
) -> tuple[Path, list[Any]]:
path = self.__generate_path(name)
match type_:
case "视频":