fix bug
This commit is contained in:
parent
593211c037
commit
95df1c4c1c
@ -215,8 +215,9 @@ class TransferChain(ChainBase):
|
|||||||
self.obtain_images(mediainfo=file_mediainfo)
|
self.obtain_images(mediainfo=file_mediainfo)
|
||||||
|
|
||||||
if not download_hash:
|
if not download_hash:
|
||||||
# TODO 查找下载记录 download_hash
|
download_file = self.downloadhis.get_file_by_fullpath(file_path_str)
|
||||||
pass
|
if download_file:
|
||||||
|
download_hash = download_file.download_hash
|
||||||
|
|
||||||
# 执行转移
|
# 执行转移
|
||||||
transferinfo: TransferInfo = self.transfer(meta=file_meta,
|
transferinfo: TransferInfo = self.transfer(meta=file_meta,
|
||||||
|
@ -440,7 +440,7 @@ class FileTransferModule(_ModuleBase):
|
|||||||
if retcode != 0:
|
if retcode != 0:
|
||||||
logger.error(f"文件 {in_path} 转移失败,错误码:{retcode}")
|
logger.error(f"文件 {in_path} 转移失败,错误码:{retcode}")
|
||||||
return TransferInfo(message=f"文件 {in_path.name} 转移失败,错误码:{retcode}",
|
return TransferInfo(message=f"文件 {in_path.name} 转移失败,错误码:{retcode}",
|
||||||
fail_list=[in_path])
|
fail_list=[str(in_path)])
|
||||||
|
|
||||||
logger.info(f"文件 {in_path} 转移成功")
|
logger.info(f"文件 {in_path} 转移成功")
|
||||||
return TransferInfo(path=in_path,
|
return TransferInfo(path=in_path,
|
||||||
@ -448,8 +448,8 @@ class FileTransferModule(_ModuleBase):
|
|||||||
file_count=1,
|
file_count=1,
|
||||||
total_size=new_file.stat().st_size,
|
total_size=new_file.stat().st_size,
|
||||||
is_bluray=False,
|
is_bluray=False,
|
||||||
file_list=[in_path],
|
file_list=[str(in_path)],
|
||||||
file_list_new=[new_file])
|
file_list_new=[str(new_file)])
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __get_naming_dict(meta: MetaBase, mediainfo: MediaInfo, file_ext: str = None) -> dict:
|
def __get_naming_dict(meta: MetaBase, mediainfo: MediaInfo, file_ext: str = None) -> dict:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user