修复 手动重新整理没有更新源文件大小的问题

- V1迁移过来的记录,重整理后文件大小显示为0
- 部分源文件大小有变动,重整理后大小显示没变化
This commit is contained in:
景大侠
2026-01-14 22:39:25 +08:00
parent a26c5e40dd
commit c9c4ab5911

View File

@@ -923,9 +923,12 @@ class TransferChain(ChainBase, metaclass=Singleton):
return storagechain.get_file_item(storage=_storage, path=p.parent)
return None
if not storagechain.get_item(fileitem):
latest_fileitem = storagechain.get_item(fileitem)
if not latest_fileitem:
logger.warn(f"目录或文件不存在:{fileitem.path}")
return []
# 确保从历史记录重新整理时 能获得最新的源文件大小、修改日期等
fileitem = latest_fileitem
# 蓝光原盘子目录或文件
if __is_bluray_sub(fileitem.path):