This commit is contained in:
jxxghp 2023-10-16 07:16:47 +08:00
parent 89a2c00e64
commit f5de48ca30

View File

@ -248,11 +248,6 @@ class DirMonitor(_PluginBase):
logger.debug(f"{event_path} 不是媒体文件") logger.debug(f"{event_path} 不是媒体文件")
return return
# 查询历史记录,已转移的不处理
if self.transferhis.get_by_src(event_path):
logger.info(f"{event_path} 已整理过")
return
# 元数据 # 元数据
file_meta = MetaInfoPath(file_path) file_meta = MetaInfoPath(file_path)
if not file_meta.name: if not file_meta.name:
@ -265,6 +260,11 @@ class DirMonitor(_PluginBase):
event_path = event_path[:event_path.find("BDMV")] event_path = event_path[:event_path.find("BDMV")]
file_path = Path(event_path) 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) target: Path = self._dirconf.get(mon_path)
# 查询转移方式 # 查询转移方式