diff --git a/package.v2.json b/package.v2.json index ac595c9..6518a25 100644 --- a/package.v2.json +++ b/package.v2.json @@ -392,11 +392,12 @@ "name": "目录实时监控", "description": "监控云盘目录文件变化,自动转移媒体文件。", "labels": "云盘,工具", - "version": "2.5.6", + "version": "2.5.7", "icon": "Linkease_A.png", "author": "thsrite", "level": 1, "history": { + "v2.5.7": "修复获取目录设置配置", "v2.5.6": "修复软连接", "v2.5.5": "修复目录设置未配置媒体库目录的场景", "v2.5.4": "默认取目录设置,可自定义覆盖方式", diff --git a/plugins.v2/cloudlinkmonitor/__init__.py b/plugins.v2/cloudlinkmonitor/__init__.py index c5239da..2195679 100644 --- a/plugins.v2/cloudlinkmonitor/__init__.py +++ b/plugins.v2/cloudlinkmonitor/__init__.py @@ -63,7 +63,7 @@ class CloudLinkMonitor(_PluginBase): # 插件图标 plugin_icon = "Linkease_A.png" # 插件版本 - plugin_version = "2.5.6" + plugin_version = "2.5.7" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -436,7 +436,7 @@ class CloudLinkMonitor(_PluginBase): # 查询转移目的目录 target_dir = DirectoryHelper().get_dir(mediainfo, src_path=Path(mon_path)) - if not target_dir or not target_dir.library_path: + if not target_dir or not target_dir.library_path or not target_dir.download_path.startswith(mon_path): target_dir = TransferDirectoryConf() target_dir.library_path = target target_dir.transfer_type = transfer_type