fix 修复获取目录设置配置

This commit is contained in:
thsrite
2025-01-06 15:01:53 +08:00
parent fe2d2e6795
commit 8907fe661c
2 changed files with 4 additions and 3 deletions

View File

@@ -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": "默认取目录设置,可自定义覆盖方式",

View File

@@ -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