mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
feat 辅助识别异步接口 && ChatGPT插件支持辅助名称识别
This commit is contained in:
@@ -32,6 +32,12 @@ class EventManager(metaclass=Singleton):
|
||||
except Empty:
|
||||
return None, []
|
||||
|
||||
def check(self, etype: EventType):
|
||||
"""
|
||||
检查事件是否存在响应
|
||||
"""
|
||||
return etype.value in self._handlers
|
||||
|
||||
def add_event_listener(self, etype: EventType, handler: type):
|
||||
"""
|
||||
注册事件处理
|
||||
|
||||
Reference in New Issue
Block a user