fix(BrushFlow): trigger plugin event with downloader

This commit is contained in:
InfinityPacer
2024-10-15 16:39:59 +08:00
parent b89a947369
commit 8c497fd89a

View File

@@ -2034,10 +2034,12 @@ class BrushFlow(_PluginBase):
"time": time.time()
}
self.eventmanager.send_event(etype=EventType.PluginAction, data={
"action": "brushflow_download_added",
self.eventmanager.send_event(etype=EventType.PluginTriggered, data={
"plugin_id": self.__class__.__name__,
"event_name": "brushflow_download_added",
"hash": hash_string,
"data": torrent_task
"data": torrent_task,
"downloader": self.service_info.name
})
torrent_tasks[hash_string] = torrent_task