mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
Merge pull request #2970 from wikrin/fix-monitor
This commit is contained in:
+5
-1
@@ -386,9 +386,12 @@ class Monitor(metaclass=Singleton):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# 查询转移目的目录
|
# 查询转移目的目录
|
||||||
if not self.directoryhelper.get_dir(mediainfo, src_path=Path(mon_path)):
|
dir_info = self.directoryhelper.get_dir(mediainfo, src_path=Path(mon_path))
|
||||||
|
if not dir_info:
|
||||||
logger.warn(f"{event_path.name} 未找到对应的目标目录")
|
logger.warn(f"{event_path.name} 未找到对应的目标目录")
|
||||||
return
|
return
|
||||||
|
# 获取目标路径
|
||||||
|
dest_path = Path(dir_info.library_path)
|
||||||
|
|
||||||
# 查找这个文件项
|
# 查找这个文件项
|
||||||
file_item = self.storagechain.get_file_item(storage=storage, path=event_path)
|
file_item = self.storagechain.get_file_item(storage=storage, path=event_path)
|
||||||
@@ -418,6 +421,7 @@ class Monitor(metaclass=Singleton):
|
|||||||
transferinfo: TransferInfo = self.chain.transfer(fileitem=file_item,
|
transferinfo: TransferInfo = self.chain.transfer(fileitem=file_item,
|
||||||
meta=file_meta,
|
meta=file_meta,
|
||||||
mediainfo=mediainfo,
|
mediainfo=mediainfo,
|
||||||
|
target_path=dest_path,
|
||||||
episodes_info=episodes_info)
|
episodes_info=episodes_info)
|
||||||
|
|
||||||
if not transferinfo:
|
if not transferinfo:
|
||||||
|
|||||||
Reference in New Issue
Block a user