Skip to content

Commit

Permalink
Merge branch 'cross-seed:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kantjer01 authored May 18, 2023
2 parents d9af26f + 4ee77ec commit 5dcd66f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/clients/QBittorrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/config.template.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
1 change: 1 addition & 0 deletions src/config.template.docker.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 5dcd66f

Please sign in to comment.