From 35afb50b267b95d7f22727e91139d4995a040771 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 16 Oct 2023 07:14:36 +0800 Subject: [PATCH] fix #867 --- app/plugins/dirmonitor/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/plugins/dirmonitor/__init__.py b/app/plugins/dirmonitor/__init__.py index b4efe583..bcd02223 100644 --- a/app/plugins/dirmonitor/__init__.py +++ b/app/plugins/dirmonitor/__init__.py @@ -259,6 +259,11 @@ class DirMonitor(_PluginBase): logger.error(f"{file_path.name} 无法识别有效信息") return + # 判断是不是蓝光目录 + if re.search(r"BDMV[/\\]STREAM", event_path, re.IGNORECASE): + # 截取BDMV前面的路径 + event_path = event_path[:event_path.find("BDMV")] + # 查询转移目的目录 target: Path = self._dirconf.get(mon_path) # 查询转移方式