fix: 修复 MCP 模式无法下载文件的问题

Closes #322
This commit is contained in:
Quan
2025-11-30 10:55:45 +08:00
parent 1e5ffc1907
commit 41c83af184
4 changed files with 5 additions and 3 deletions

View File

@@ -168,6 +168,7 @@ class XHS:
self.queue = Queue()
self.event = Event()
self.script = None
self.init_script_server()
def __extract_image(self, container: dict, data: Namespace):
container["下载地址"], container["动图地址"] = self.image.get_image_link(
@@ -750,7 +751,7 @@ class XHS:
) -> dict:
msg, data = await self.deal_detail_mcp(
url,
False,
True,
index,
)
match (