结构调整
视频解析多图/多媒体结构 消息体适配
This commit is contained in:
@@ -179,6 +179,12 @@ async def dispatch_url(
|
||||
await UniMessage.text("检测到链接,正在处理,请稍候...").send()
|
||||
try:
|
||||
title, parsed_path, image_post = await parse_douyin(url)
|
||||
if not title and not parsed_path:
|
||||
# 链接识别成功但未能获取到作品(网络/风控/链接失效等),
|
||||
# 给出明确失败提示,避免只发"请稍候"后无下文。
|
||||
await UniMessage.text(f"无法解析到媒体:{url}").send()
|
||||
logger.warning(f"媒体解析:未能获取到作品:{url}")
|
||||
return None, None
|
||||
return await process_douyin_res(
|
||||
title, parsed_path, is_private, image_post, plan=plan
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user