From 67d09d8d76c68c88f941a8e2c1b46aa6a7206f23 Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 24 Jun 2024 16:14:53 +0800 Subject: [PATCH] fix bug --- plugins/cloudassistant/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cloudassistant/__init__.py b/plugins/cloudassistant/__init__.py index 4d94e88..a7230a6 100644 --- a/plugins/cloudassistant/__init__.py +++ b/plugins/cloudassistant/__init__.py @@ -232,7 +232,7 @@ class CloudAssistant(_PluginBase): if self._enabled: # 检查媒体库目录是不是下载目录的子目录 try: - if target_path and target_path.is_relative_to(Path(mon_path)): + if target_path and Path(target_path).is_relative_to(Path(mon_path)): logger.warn(f"{target_path} 是监控目录 {mon_path} 的子目录,无法监控") self.systemmessage.put(f"{target_path} 是下载目录 {mon_path} 的子目录,无法监控", title="目录监控")