From 2536119f60ea90f286a5e6fc2f3f0914a072e370 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 24 Jun 2024 09:12:26 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=BD=91=E7=9B=98=E6=95=B4?= =?UTF-8?q?=E7=90=86=E8=81=94=E5=8A=A8=E5=88=AE=E5=89=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/transfer.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/chain/transfer.py b/app/chain/transfer.py index bbd4dae0..cff9e4ca 100644 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -165,7 +165,21 @@ class TransferChain(ChainBase): ), meta=meta, mediainfo=mediainfo) - + if result and result[0] and scrape: + # 刮削元数据 + self.progress.update(value=0, + text=f"正在刮削 {path} ...", + key=ProgressKey.FileTransfer) + self.mediachain.manual_scrape(storage=storage, + fileitem=schemas.FileItem( + path=str(path) + ("/" if filetype == "dir" else ""), + type=filetype, + drive_id=drive_id, + fileid=fileid, + name=path.name + ), + meta=meta, + mediainfo=mediainfo) # 结速进度 self.progress.end(ProgressKey.FileTransfer) return result