This commit is contained in:
jxxghp 2023-08-31 12:28:30 +08:00
parent 593211c037
commit 95df1c4c1c
2 changed files with 6 additions and 5 deletions

View File

@ -215,8 +215,9 @@ class TransferChain(ChainBase):
self.obtain_images(mediainfo=file_mediainfo)
if not download_hash:
# TODO 查找下载记录 download_hash
pass
download_file = self.downloadhis.get_file_by_fullpath(file_path_str)
if download_file:
download_hash = download_file.download_hash
# 执行转移
transferinfo: TransferInfo = self.transfer(meta=file_meta,

View File

@ -440,7 +440,7 @@ class FileTransferModule(_ModuleBase):
if retcode != 0:
logger.error(f"文件 {in_path} 转移失败,错误码:{retcode}")
return TransferInfo(message=f"文件 {in_path.name} 转移失败,错误码:{retcode}",
fail_list=[in_path])
fail_list=[str(in_path)])
logger.info(f"文件 {in_path} 转移成功")
return TransferInfo(path=in_path,
@ -448,8 +448,8 @@ class FileTransferModule(_ModuleBase):
file_count=1,
total_size=new_file.stat().st_size,
is_bluray=False,
file_list=[in_path],
file_list_new=[new_file])
file_list=[str(in_path)],
file_list_new=[str(new_file)])
@staticmethod
def __get_naming_dict(meta: MetaBase, mediainfo: MediaInfo, file_ext: str = None) -> dict: