From b74bfea893859ba4a24886db312ecaa18852be8f Mon Sep 17 00:00:00 2001
From: Michael Goodnow <mmgoodnow@gmail.com>
Date: Thu, 18 May 2023 01:28:25 -0400
Subject: [PATCH 1/3] fix skipRecheck

---
 src/clients/QBittorrent.ts     | 4 ++--
 src/config.template.cjs        | 1 +
 src/config.template.docker.cjs | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

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,
 

From 9c949b6cd2606446308ca72b68e35f977760337f Mon Sep 17 00:00:00 2001
From: Michael Goodnow <mmgoodnow@gmail.com>
Date: Thu, 18 May 2023 01:53:31 -0400
Subject: [PATCH 2/3] update xml2js

---
 package-lock.json | 14 +++++++-------
 package.json      |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 17897a1fd..6fbbaf9b9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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..65442669b 100644
--- a/package.json
+++ b/package.json
@@ -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": {

From 4ee77ec44c3441c89d5dcb48ff9fc7019920a28a Mon Sep 17 00:00:00 2001
From: Michael Goodnow <mmgoodnow@gmail.com>
Date: Thu, 18 May 2023 01:59:21 -0400
Subject: [PATCH 3/3] 5.0.3

---
 package-lock.json | 4 ++--
 package.json      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 6fbbaf9b9..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",
diff --git a/package.json b/package.json
index 65442669b..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",