mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-06-04 07:26:54 +00:00
fix 部分插件通知增加标题
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user