fix 部分插件通知增加标题

This commit is contained in:
jxxghp
2024-05-20 10:25:15 +08:00
parent 3f43c677b2
commit c3460404e4
13 changed files with 24 additions and 24 deletions

View File

@@ -172,7 +172,7 @@ class DirMonitor(_PluginBase):
try:
if target_path and target_path.is_relative_to(Path(mon_path)):
logger.warn(f"{target_path} 是监控目录 {mon_path} 的子目录,无法监控")
self.systemmessage.put(f"{target_path} 是下载目录 {mon_path} 的子目录,无法监控")
self.systemmessage.put(f"{target_path} 是下载目录 {mon_path} 的子目录,无法监控", title="目录监控")
continue
except Exception as e:
logger.debug(str(e))
@@ -202,7 +202,7 @@ class DirMonitor(_PluginBase):
""")
else:
logger.error(f"{mon_path} 启动目录监控失败:{err_msg}")
self.systemmessage.put(f"{mon_path} 启动目录监控失败:{err_msg}")
self.systemmessage.put(f"{mon_path} 启动目录监控失败:{err_msg}", title="目录监控")
# 运行一次定时服务
if self._onlyonce: