This commit is contained in:
jxxghp
2023-09-27 13:40:35 +08:00
parent 404a7b8337
commit f5a61ceff1

View File

@ -1767,19 +1767,22 @@ class BrushFlow(_PluginBase):
""" """
发送删除种子的消息 发送删除种子的消息
""" """
if self._notify: if not self._notify:
self.chain.post_message(Notification( return
mtype=NotificationType.SiteMessage, self.chain.post_message(Notification(
title=f"【刷流任务删种】", mtype=NotificationType.SiteMessage,
text=f"站点:{site_name}\n" title=f"【刷流任务删种】",
f"标题{torrent_title}\n" text=f"站点{site_name}\n"
f"原因{reason}" f"标题{torrent_title}\n"
)) f"原因:{reason}"
))
def __send_add_message(self, torrent: TorrentInfo): def __send_add_message(self, torrent: TorrentInfo):
""" """
发送添加下载的消息 发送添加下载的消息
""" """
if not self._notify:
return
msg_text = "" msg_text = ""
if torrent.site_name: if torrent.site_name:
msg_text = f"站点:{torrent.site_name}" msg_text = f"站点:{torrent.site_name}"