From 8c497fd89a7f5ba4f0f82cb2aafed11db0990e9f Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:39:59 +0800 Subject: [PATCH] fix(BrushFlow): trigger plugin event with downloader --- plugins.v2/brushflow/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins.v2/brushflow/__init__.py b/plugins.v2/brushflow/__init__.py index 2f50f73..72e2724 100644 --- a/plugins.v2/brushflow/__init__.py +++ b/plugins.v2/brushflow/__init__.py @@ -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