refactor(event): optimize broadcast and chain event

This commit is contained in:
InfinityPacer
2024-09-19 23:55:24 +08:00
parent 2486b9274c
commit 49b6052ab0
2 changed files with 220 additions and 111 deletions
+9 -1
View File
@@ -14,7 +14,7 @@ class TorrentStatus(Enum):
DOWNLOADING = "下载中"
# 可监听事件
# 异步广播事件
class EventType(Enum):
# 插件需要重载
PluginReload = "plugin.reload"
@@ -56,6 +56,14 @@ class EventType(Enum):
MetadataScrape = "metadata.scrape"
# 同步链式事件
class SyncEventType(Enum):
# 刮削元数据
MetadataScrape = "metadata.scrape"
# 插件动作
PluginAction = "plugin.action"
# 系统配置Key字典
class SystemConfigKey(Enum):
# 下载器配置