From ba00baa5a0232ce676b2ec06584b5d67838aa734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Fri, 2 Jan 2026 23:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=88=AE=E5=89=8A?= =?UTF-8?q?=E7=94=B5=E5=BD=B1=E4=BC=9A=E8=AF=AF=E6=8A=A5=E7=88=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E6=B5=B7=E6=8A=A5=E5=9B=BE=E5=B7=B2=E5=AD=98?= =?UTF-8?q?=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chain/media.py b/app/chain/media.py index c54a1b0e..40a8824c 100644 --- a/app/chain/media.py +++ b/app/chain/media.py @@ -618,7 +618,7 @@ class MediaChain(ChainBase): should_scrape = True # 未知类型默认刮削 if should_scrape: - image_path = filepath.with_name(image_name) + image_path = filepath / image_name if overwrite or not storagechain.get_file_item(storage=fileitem.storage, path=image_path): # 流式下载图片并直接保存