From c9c4ab5911b9411116f14b9adc0124e59a42e18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Wed, 14 Jan 2026 22:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=95=B4=E7=90=86=E6=B2=A1=E6=9C=89=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=BA=90=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - V1迁移过来的记录,重整理后文件大小显示为0 - 部分源文件大小有变动,重整理后大小显示没变化 --- app/chain/transfer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/chain/transfer.py b/app/chain/transfer.py index b5b9ab00..2ada4bd2 100755 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -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):