From 8907fe661cc5e1e5491a021584078b9307a1c810 Mon Sep 17 00:00:00 2001 From: thsrite Date: Mon, 6 Jan 2025 15:01:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=AE=BE=E7=BD=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.v2.json | 3 ++- plugins.v2/cloudlinkmonitor/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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