feat:键式事件协程处理

This commit is contained in:
jxxghp
2025-07-31 17:27:15 +08:00
parent 1e61e60d73
commit aea44c1d97
5 changed files with 251 additions and 41 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ class ChainBase(metaclass=ABCMeta):
:param raise_exception: 触发速率限制时是否抛出异常
"""
return await self.async_run_module("async_douban_info", doubanid=doubanid, mtype=mtype,
raise_exception=raise_exception)
raise_exception=raise_exception)
def tvdb_info(self, tvdbid: int) -> Optional[dict]:
"""
+1 -1
View File
@@ -794,7 +794,7 @@ class MediaChain(ChainBase):
:param org_meta: 原始元数据
"""
# 发送请求事件,等待结果
result: Event = eventmanager.send_event(
result: Event = await eventmanager.async_send_event(
ChainEventType.NameRecognize,
{
'title': title,