Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:pt-plugins/PT-Plugin-Plus into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ronggang committed Nov 8, 2023
2 parents 6786fa0 + 29c24d7 commit c0c78bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resource/clients/qbittorrent/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -195,7 +195,9 @@
}
}

formData.append("autoTMM", autoTMM);
if (autoTMM !== undefined) {
formData.append("autoTMM", autoTMM);
}

if (category != undefined) {
formData.append("category", category);
Expand Down

0 comments on commit c0c78bd

Please sign in to comment.