From 29c24d790a17dc7a44a9ab530f1a4d93443ccbc1 Mon Sep 17 00:00:00 2001 From: IITII Date: Wed, 8 Nov 2023 11:23:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(qb):=20=E5=8E=BB=E6=8E=89=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=BC=80=E5=90=AF=20=E8=87=AA=E5=8A=A8=E7=A7=8D=E5=AD=90?= =?UTF-8?q?=E7=AE=A1=E7=90=86=20#1643?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/clients/qbittorrent/init.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resource/clients/qbittorrent/init.js b/resource/clients/qbittorrent/init.js index 6f35c5b2b..797391fd8 100644 --- a/resource/clients/qbittorrent/init.js +++ b/resource/clients/qbittorrent/init.js @@ -169,7 +169,7 @@ */ addTorrentFromUrl(data, callback) { let formData = new FormData(); - let {savePath, category, clientOptions} = data, autoTMM = true, qbCategories + let {savePath, category, clientOptions} = data, autoTMM = undefined, qbCategories if (savePath) { formData.append("savepath", data.savePath) @@ -195,7 +195,9 @@ } } - formData.append("autoTMM", autoTMM); + if (autoTMM !== undefined) { + formData.append("autoTMM", autoTMM); + } if (category != undefined) { formData.append("category", category);