diff --git a/app/plugins/dirmonitor/__init__.py b/app/plugins/dirmonitor/__init__.py index b0e569c2..e215679d 100644 --- a/app/plugins/dirmonitor/__init__.py +++ b/app/plugins/dirmonitor/__init__.py @@ -315,12 +315,6 @@ class DirMonitor(_PluginBase): logger.debug(f"{event_path} 不是媒体文件") return - # 元数据 - file_meta = MetaInfoPath(file_path) - if not file_meta.name: - logger.error(f"{file_path.name} 无法识别有效信息") - return - # 判断是不是蓝光目录 if re.search(r"BDMV[/\\]STREAM", event_path, re.IGNORECASE): # 截取BDMV前面的路径 @@ -332,6 +326,12 @@ class DirMonitor(_PluginBase): logger.info(f"{event_path} 已整理过") return + # 元数据 + file_meta = MetaInfoPath(file_path) + if not file_meta.name: + logger.error(f"{file_path.name} 无法识别有效信息") + return + # 查询转移目的目录 target: Path = self._dirconf.get(mon_path) # 查询转移方式