From 6e0ea9f21c1d72e46565a706f1a4090ab4e15537 Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 26 Aug 2024 14:28:08 +0800 Subject: [PATCH] fix --- plugins/embydanmu/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/embydanmu/__init__.py b/plugins/embydanmu/__init__.py index e2a4607..f2155b3 100644 --- a/plugins/embydanmu/__init__.py +++ b/plugins/embydanmu/__init__.py @@ -44,7 +44,6 @@ class EmbyDanmu(_PluginBase): def init_plugin(self, config: dict = None): self._library_task = {} - self._danmu_source = self.__get_danmu_source() # 读取配置 if config: self._enabled = config.get("enabled") @@ -55,8 +54,10 @@ class EmbyDanmu(_PluginBase): if not self._EMBY_HOST.startswith("http"): self._EMBY_HOST = "http://" + self._EMBY_HOST + self._danmu_source = self.__get_danmu_source() + @eventmanager.register(EventType.PluginAction) - def audiobook(self, event: Event = None): + def danmu(self, event: Event = None): if not self._enabled: return if event: