From 1cf4639db32224d97d8a06e2a87ebd3587599e96 Mon Sep 17 00:00:00 2001 From: Attente <19653207+wikrin@users.noreply.github.com> Date: Sun, 29 Jun 2025 22:24:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(download):=20=E4=BF=AE=E5=A4=8D=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E4=B8=8B=E8=BD=BD=E6=97=B6=E4=B8=8B=E8=BD=BD=E5=99=A8?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在手动下载模式下,始终使用用户选择的下载器 --- app/api/endpoints/download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/endpoints/download.py b/app/api/endpoints/download.py index fa99ca59..2c644461 100644 --- a/app/api/endpoints/download.py +++ b/app/api/endpoints/download.py @@ -44,6 +44,8 @@ def download( # 种子信息 torrentinfo = TorrentInfo() torrentinfo.from_dict(torrent_in.dict()) + # 手动下载始终使用选择的下载器 + torrentinfo.site_downloader = downloader # 上下文 context = Context( meta_info=metainfo, @@ -51,7 +53,7 @@ def download( torrent_info=torrentinfo ) did = DownloadChain().download_single(context=context, username=current_user.name, - downloader=downloader, save_path=save_path, source="Manual") + save_path=save_path, source="Manual") if not did: return schemas.Response(success=False, message="任务添加失败") return schemas.Response(success=True, data={