diff --git a/app/plugins/dirmonitor/__init__.py b/app/plugins/dirmonitor/__init__.py index 45f82f82..b2e2522f 100644 --- a/app/plugins/dirmonitor/__init__.py +++ b/app/plugins/dirmonitor/__init__.py @@ -248,11 +248,6 @@ class DirMonitor(_PluginBase): logger.debug(f"{event_path} 不是媒体文件") return - # 查询历史记录,已转移的不处理 - if self.transferhis.get_by_src(event_path): - logger.info(f"{event_path} 已整理过") - return - # 元数据 file_meta = MetaInfoPath(file_path) if not file_meta.name: @@ -265,6 +260,11 @@ class DirMonitor(_PluginBase): event_path = event_path[:event_path.find("BDMV")] file_path = Path(event_path) + # 查询历史记录,已转移的不处理 + if self.transferhis.get_by_src(event_path): + logger.info(f"{event_path} 已整理过") + return + # 查询转移目的目录 target: Path = self._dirconf.get(mon_path) # 查询转移方式