diff --git a/package-lock.json b/package-lock.json index 17897a1fd..b282ccb63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cross-seed", - "version": "5.0.2", + "version": "5.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cross-seed", - "version": "5.0.2", + "version": "5.0.3", "license": "Apache-2.0", "dependencies": { "bencode": "^2.0.1", @@ -25,7 +25,7 @@ "simple-get": "^4.0.0", "winston": "^3.3.3", "winston-daily-rotate-file": "^4.5.5", - "xml2js": "^0.4.23", + "xml2js": "^0.5.0", "xmlrpc": "^1.3.2" }, "bin": { @@ -3237,9 +3237,9 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "node_modules/xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" @@ -5533,9 +5533,9 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "requires": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" diff --git a/package.json b/package.json index eb1767b26..8e2777e67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cross-seed", - "version": "5.0.2", + "version": "5.0.3", "description": "Query Jackett for cross-seedable torrents", "scripts": { "test": "true", @@ -41,7 +41,7 @@ "simple-get": "^4.0.0", "winston": "^3.3.3", "winston-daily-rotate-file": "^4.5.5", - "xml2js": "^0.4.23", + "xml2js": "^0.5.0", "xmlrpc": "^1.3.2" }, "devDependencies": { diff --git a/src/clients/QBittorrent.ts b/src/clients/QBittorrent.ts index 37715c12c..4c2feaf6e 100644 --- a/src/clients/QBittorrent.ts +++ b/src/clients/QBittorrent.ts @@ -321,7 +321,7 @@ export default class QBittorrent implements TorrentClient { formData.append("autoTMM", "false"); formData.append("savepath", save_path); } - if (linkDir) { + if (path) { formData.append("skip_checking", skipRecheck.toString()); formData.append("paused", (!skipRecheck).toString()); } else { @@ -336,7 +336,7 @@ export default class QBittorrent implements TorrentClient { await this.request("/torrents/add", formData); - if (!skipRecheck) { + if (path && !skipRecheck) { await new Promise((resolve) => setTimeout(resolve, 100)); await this.request( "/torrents/recheck", diff --git a/src/config.template.cjs b/src/config.template.cjs index 6785f9f93..8f292e552 100644 --- a/src/config.template.cjs +++ b/src/config.template.cjs @@ -51,6 +51,7 @@ module.exports = { /** * Whether to skip recheck in Qbittorrent. If using "risky" matchMode it is HIGHLY * recommended to set this to false. + * Only applies to data based matches. */ skipRecheck: false, diff --git a/src/config.template.docker.cjs b/src/config.template.docker.cjs index a388744a3..7bb071b1d 100644 --- a/src/config.template.docker.cjs +++ b/src/config.template.docker.cjs @@ -51,6 +51,7 @@ module.exports = { /** * Whether to skip recheck in Qbittorrent. If using "risky" matchMode it is HIGHLY * recommended to set this to false. + * Only applies to data based matches. */ skipRecheck: false,