mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-18 15:09:29 +00:00
更新 __init__.py
This commit is contained in:
@@ -198,12 +198,14 @@ class SiteStatistic(_PluginBase):
|
||||
}
|
||||
|
||||
@eventmanager.register(EventType.SiteRefreshed)
|
||||
def send_msg(self, _: Event):
|
||||
def send_msg(self, event: Event):
|
||||
"""
|
||||
站点数据刷新事件时发送消息
|
||||
"""
|
||||
if not self._notify_type:
|
||||
return
|
||||
if event.event_data.get('site_id') != "*":
|
||||
return
|
||||
# 获取站点数据
|
||||
today, today_data, yesterday_data = self.__get_data()
|
||||
# 转换为字典
|
||||
|
||||
Reference in New Issue
Block a user