cross-seed 5.9.1 → 6.0.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Result.js +2 -0
- package/dist/Result.js.map +1 -1
- package/dist/action.js +117 -57
- package/dist/action.js.map +1 -1
- package/dist/auth.js +5 -5
- package/dist/auth.js.map +1 -1
- package/dist/clients/Deluge.js +68 -36
- package/dist/clients/Deluge.js.map +1 -1
- package/dist/clients/QBittorrent.js +40 -30
- package/dist/clients/QBittorrent.js.map +1 -1
- package/dist/clients/RTorrent.js +61 -23
- package/dist/clients/RTorrent.js.map +1 -1
- package/dist/clients/TorrentClient.js.map +1 -1
- package/dist/clients/Transmission.js +18 -8
- package/dist/clients/Transmission.js.map +1 -1
- package/dist/cmd.js +76 -75
- package/dist/cmd.js.map +1 -1
- package/dist/config.template.cjs +226 -142
- package/dist/config.template.cjs.map +1 -1
- package/dist/configSchema.js +184 -0
- package/dist/configSchema.js.map +1 -0
- package/dist/configuration.js +35 -9
- package/dist/configuration.js.map +1 -1
- package/dist/constants.js +27 -11
- package/dist/constants.js.map +1 -1
- package/dist/dataFiles.js +17 -8
- package/dist/dataFiles.js.map +1 -1
- package/dist/decide.js +100 -20
- package/dist/decide.js.map +1 -1
- package/dist/diff.js.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/indexers.js +3 -3
- package/dist/indexers.js.map +1 -1
- package/dist/jobs.js +15 -7
- package/dist/jobs.js.map +1 -1
- package/dist/logger.js +9 -9
- package/dist/logger.js.map +1 -1
- package/dist/migrations/00-initialSchema.js.map +1 -1
- package/dist/migrations/02-timestamps.js +3 -1
- package/dist/migrations/02-timestamps.js.map +1 -1
- package/dist/parseTorrent.js +11 -2
- package/dist/parseTorrent.js.map +1 -1
- package/dist/pipeline.js +34 -25
- package/dist/pipeline.js.map +1 -1
- package/dist/preFilter.js +17 -6
- package/dist/preFilter.js.map +1 -1
- package/dist/pushNotifier.js +29 -10
- package/dist/pushNotifier.js.map +1 -1
- package/dist/runtimeConfig.js.map +1 -1
- package/dist/searchee.js +8 -1
- package/dist/searchee.js.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/startup.js +62 -23
- package/dist/startup.js.map +1 -1
- package/dist/torrent.js +14 -29
- package/dist/torrent.js.map +1 -1
- package/dist/torznab.js +56 -32
- package/dist/torznab.js.map +1 -1
- package/dist/utils.js +32 -5
- package/dist/utils.js.map +1 -1
- package/package.json +23 -13
- package/dist/config.template.docker.cjs +0 -236
- package/dist/config.template.docker.cjs.map +0 -1
@@ -1,236 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// If you find yourself always using the same command-line flag, you can set
|
3
|
-
// it here as a default.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
module.exports = {
|
6
|
-
/**
|
7
|
-
* Pause at least this much in between each search. Higher is safer.
|
8
|
-
* It is not recommended to set this to less than 2 seconds.
|
9
|
-
*/
|
10
|
-
delay: 10,
|
11
|
-
/**
|
12
|
-
* List of Torznab URLs.
|
13
|
-
* For Jackett, click "Copy RSS feed"
|
14
|
-
* For Prowlarr, click on the indexer name and copy the Torznab Url, then append "?apikey=YOUR_PROWLARR_API_KEY"
|
15
|
-
* Wrap each URL in quotation marks, and separate them with commas, and surround the entire set in brackets.
|
16
|
-
*/
|
17
|
-
torznab: [],
|
18
|
-
/**
|
19
|
-
* To search with downloaded data, you can pass in directories to your downloaded torrent
|
20
|
-
* data to find matches rather using the torrent files themselves for matching.
|
21
|
-
*
|
22
|
-
* If enabled, this needs to be surrounded by brackets. Windows users will need to use
|
23
|
-
* double backslash in all paths in this config.
|
24
|
-
* e.g.
|
25
|
-
* dataDirs: ["/path/here"],
|
26
|
-
* dataDirs: ["/path/here", "/other/path/here"],
|
27
|
-
* dataDirs: ["C:\\My Data\\Downloads"]
|
28
|
-
*/
|
29
|
-
dataDirs: undefined,
|
30
|
-
/**
|
31
|
-
* Determines flexibility of naming during matching. "safe" will allow only perfect name matches
|
32
|
-
* using the standard matching algorithm. "risky" uses filesize as its only comparison point.
|
33
|
-
* Options: "safe", "risky"
|
34
|
-
*/
|
35
|
-
matchMode: "safe",
|
36
|
-
/**
|
37
|
-
* Defines what category torrents injected by data-based matching should use.
|
38
|
-
* Default is "cross-seed-data"
|
39
|
-
*/
|
40
|
-
dataCategory: undefined,
|
41
|
-
/**
|
42
|
-
* If this is specified, cross-seed will create links to scanned files in the specified directory.
|
43
|
-
* It will create a different link for every changed file name or directory structure.
|
44
|
-
*/
|
45
|
-
linkDir: undefined,
|
46
|
-
/**
|
47
|
-
* cross-seed will use links of this type to inject data-based matches into your client.
|
48
|
-
* Only relevant if dataDirs is specified.
|
49
|
-
* Options: "symlink", "hardlink"
|
50
|
-
*/
|
51
|
-
linkType: "symlink",
|
52
|
-
/**
|
53
|
-
* Whether to skip recheck in Qbittorrent. If using "risky" matchMode it is HIGHLY
|
54
|
-
* recommended to set this to false.
|
55
|
-
* Only applies to data based matches.
|
56
|
-
*/
|
57
|
-
skipRecheck: false,
|
58
|
-
/**
|
59
|
-
* Determines how deep into the specified dataDirs to go to generate new searchees.
|
60
|
-
* Setting this to higher values will result in more searchees and more API hits to
|
61
|
-
* your indexers.
|
62
|
-
*/
|
63
|
-
maxDataDepth: 2,
|
64
|
-
/**
|
65
|
-
* Directory containing .torrent files.
|
66
|
-
* For qBittorrent, this is BT_Backup
|
67
|
-
* For rtorrent, this is your session directory
|
68
|
-
* as configured in your .rtorrent.rc file.
|
69
|
-
* For Deluge, this is ~/.config/deluge/state.
|
70
|
-
* For Transmission, this would be ~/.config/transmission/torrents
|
71
|
-
*
|
72
|
-
* Don't change this for Docker.
|
73
|
-
* Instead set the volume mapping on your docker container.
|
74
|
-
*/
|
75
|
-
torrentDir: "/torrents",
|
76
|
-
/**
|
77
|
-
* Where to put the torrent files that cross-seed finds for you.
|
78
|
-
* Don't change this for Docker.
|
79
|
-
* Instead set the volume mapping on your docker container.
|
80
|
-
*/
|
81
|
-
outputDir: "/cross-seeds",
|
82
|
-
/**
|
83
|
-
* Whether to search for all episode torrents, including those from season packs. This option overrides includeSingleEpisodes.
|
84
|
-
*/
|
85
|
-
includeEpisodes: false,
|
86
|
-
/**
|
87
|
-
* Whether to include single episode torrents in the search (not from season packs).
|
88
|
-
* Like `includeEpisodes` but slightly more restrictive.
|
89
|
-
*/
|
90
|
-
includeSingleEpisodes: false,
|
91
|
-
/**
|
92
|
-
* Include torrents which contain non-video files
|
93
|
-
* This option does not override includeEpisodes or includeSingleEpisodes.
|
94
|
-
*
|
95
|
-
* To search for everything except episodes, use (includeEpisodes: false, includeSingleEpisodes: false, includeNonVideos: true)
|
96
|
-
* To search for everything including episodes, use (includeEpisodes: true, includeNonVideos: true)
|
97
|
-
* To search for everything except season pack episodes (data-based)
|
98
|
-
* use (includeEpisodes: false, includeSingleEpisodes: true, includeNonVideos: true)
|
99
|
-
*/
|
100
|
-
includeNonVideos: false,
|
101
|
-
/**
|
102
|
-
* fuzzy size match threshold
|
103
|
-
* decimal value (0.02 = 2%)
|
104
|
-
*/
|
105
|
-
fuzzySizeThreshold: 0.02,
|
106
|
-
/**
|
107
|
-
* Exclude torrents first seen more than this long ago.
|
108
|
-
* Format: https://github.com/vercel/ms
|
109
|
-
* Examples:
|
110
|
-
* "10min"
|
111
|
-
* "2w"
|
112
|
-
* "3 days"
|
113
|
-
*/
|
114
|
-
excludeOlder: undefined,
|
115
|
-
/**
|
116
|
-
* Exclude torrents which have been searched
|
117
|
-
* more recently than this long ago.
|
118
|
-
* Examples:
|
119
|
-
* "10min"
|
120
|
-
* "2w"
|
121
|
-
* "3 days"
|
122
|
-
*/
|
123
|
-
excludeRecentSearch: undefined,
|
124
|
-
/**
|
125
|
-
* With "inject" you need to set up one of the below clients.
|
126
|
-
* Options: "save", "inject"
|
127
|
-
*/
|
128
|
-
action: "save",
|
129
|
-
/**
|
130
|
-
* The url of your rtorrent XMLRPC interface.
|
131
|
-
* Only relevant with action: "inject".
|
132
|
-
* Could be something like "http://username:password@localhost:1234/RPC2
|
133
|
-
*/
|
134
|
-
rtorrentRpcUrl: undefined,
|
135
|
-
/**
|
136
|
-
* The url of your qBittorrent webui.
|
137
|
-
* Only relevant with action: "inject".
|
138
|
-
* Supply your username and password inside the url like so:
|
139
|
-
* "http://username:password@localhost:8080"
|
140
|
-
*/
|
141
|
-
qbittorrentUrl: undefined,
|
142
|
-
/**
|
143
|
-
* The url of your Transmission RPC interface.
|
144
|
-
* Usually ends with "/transmission/rpc".
|
145
|
-
* Only relevant with action: "inject".
|
146
|
-
* Supply your username and password inside the url like so:
|
147
|
-
* "http://username:password@localhost:9091/transmission/rpc"
|
148
|
-
*/
|
149
|
-
transmissionRpcUrl: undefined,
|
150
|
-
/**
|
151
|
-
* The url of your Deluge JSON-RPC interface.
|
152
|
-
* Usually ends with "/json".
|
153
|
-
* Only relevant with action: "inject".
|
154
|
-
* Supply your WebUI password as well
|
155
|
-
* "http://:password@localhost:8112/json"
|
156
|
-
*/
|
157
|
-
delugeRpcUrl: undefined,
|
158
|
-
/**
|
159
|
-
* qBittorrent and Deluge specific
|
160
|
-
* Whether to inject using the same labels/categories as the original torrent.
|
161
|
-
* qBittorrent: This will apply the category's save path
|
162
|
-
* Example: if you have a label/category called "Movies",
|
163
|
-
* this will automatically inject cross-seeds to "Movies.cross-seed"
|
164
|
-
*/
|
165
|
-
duplicateCategories: false,
|
166
|
-
/**
|
167
|
-
* cross-seed will send POST requests to this url
|
168
|
-
* with a JSON payload of { title, body }.
|
169
|
-
* Conforms to the caronc/apprise REST API.
|
170
|
-
*/
|
171
|
-
notificationWebhookUrl: undefined,
|
172
|
-
/**
|
173
|
-
* Listen on a custom port.
|
174
|
-
*/
|
175
|
-
port: 2468,
|
176
|
-
/**
|
177
|
-
* Bind to a specific host address.
|
178
|
-
* Example: "127.0.0.1"
|
179
|
-
* Default is "0.0.0.0"
|
180
|
-
*/
|
181
|
-
host: undefined,
|
182
|
-
/**
|
183
|
-
* Whether to require authentication for API.
|
184
|
-
* Run the command `cross-seed api-key` to find your api key.
|
185
|
-
* Keys can be provided in an X-Api-Key HTTP header or a query param.
|
186
|
-
*/
|
187
|
-
apiAuth: true,
|
188
|
-
/**
|
189
|
-
* Run rss scans on a schedule. Format: https://github.com/vercel/ms
|
190
|
-
* Set to undefined or null to disable. Minimum of 10 minutes.
|
191
|
-
* Examples:
|
192
|
-
* "10min"
|
193
|
-
* "2w"
|
194
|
-
* "3 days"
|
195
|
-
*/
|
196
|
-
rssCadence: undefined,
|
197
|
-
/**
|
198
|
-
* Run searches on a schedule. Format: https://github.com/vercel/ms
|
199
|
-
* Set to undefined or null to disable. Minimum of 1 day.
|
200
|
-
* If you have RSS enabled, you won't need this to run often (2+ weeks recommended)
|
201
|
-
* Examples:
|
202
|
-
* "10min"
|
203
|
-
* "2w"
|
204
|
-
* "3 days"
|
205
|
-
*/
|
206
|
-
searchCadence: undefined,
|
207
|
-
/**
|
208
|
-
* Fail snatch requests that haven't responded after this long.
|
209
|
-
* Set to null for an infinite timeout.
|
210
|
-
* Format: https://github.com/vercel/ms
|
211
|
-
* Examples:
|
212
|
-
* "30sec"
|
213
|
-
* "10s"
|
214
|
-
* "1min"
|
215
|
-
* null
|
216
|
-
*/
|
217
|
-
snatchTimeout: undefined,
|
218
|
-
/**
|
219
|
-
* Fail search requests that haven't responded after this long.
|
220
|
-
* Set to null for an infinite timeout.
|
221
|
-
* Format: https://github.com/vercel/ms
|
222
|
-
* Examples:
|
223
|
-
* "30sec"
|
224
|
-
* "10s"
|
225
|
-
* "1min"
|
226
|
-
* null
|
227
|
-
*/
|
228
|
-
searchTimeout: undefined,
|
229
|
-
/**
|
230
|
-
* The number of searches to be done before it stops.
|
231
|
-
* Combine this with "excludeRecentSearch" and "searchCadence" to smooth long-term API usage patterns.
|
232
|
-
* Default is no limit.
|
233
|
-
*/
|
234
|
-
searchLimit: undefined,
|
235
|
-
};
|
236
|
-
//# sourceMappingURL=config.template.docker.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"config.template.docker.cjs","sourceRoot":"","sources":["../src/config.template.docker.cjs"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,wBAAwB;;AAExB,MAAM,CAAC,OAAO,GAAG;IAChB;;;OAGG;IACH,KAAK,EAAE,EAAE;IAET;;;;;OAKG;IACH,OAAO,EAAE,EAAE;IAEX;;;;;;;;;;OAUG;IACH,QAAQ,EAAE,SAAS;IAEnB;;;;OAIG;IACH,SAAS,EAAE,MAAM;IAEjB;;;OAGG;IACH,YAAY,EAAE,SAAS;IAEvB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;;OAIG;IACH,QAAQ,EAAE,SAAS;IAEnB;;;;OAIG;IACH,WAAW,EAAE,KAAK;IAElB;;;;OAIG;IACH,YAAY,EAAE,CAAC;IAEf;;;;;;;;;;OAUG;IACH,UAAU,EAAE,WAAW;IAEvB;;;;OAIG;IACH,SAAS,EAAE,cAAc;IAEzB;;OAEG;IACH,eAAe,EAAE,KAAK;IAEtB;;;OAGG;IACH,qBAAqB,EAAE,KAAK;IAE5B;;;;;;;;OAQG;IACH,gBAAgB,EAAE,KAAK;IAEvB;;;OAGG;IACH,kBAAkB,EAAE,IAAI;IAExB;;;;;;;OAOG;IACH,YAAY,EAAE,SAAS;IAEvB;;;;;;;OAOG;IACH,mBAAmB,EAAE,SAAS;IAE9B;;;OAGG;IACH,MAAM,EAAE,MAAM;IAEd;;;;OAIG;IACH,cAAc,EAAE,SAAS;IAEzB;;;;;OAKG;IACH,cAAc,EAAE,SAAS;IAEzB;;;;;;OAMG;IACH,kBAAkB,EAAE,SAAS;IAE7B;;;;;;OAMG;IACH,YAAY,EAAE,SAAS;IAEvB;;;;;;OAMG;IACH,mBAAmB,EAAE,KAAK;IAE1B;;;;OAIG;IACH,sBAAsB,EAAE,SAAS;IAEjC;;OAEG;IACH,IAAI,EAAE,IAAI;IAEV;;;;OAIG;IACH,IAAI,EAAE,SAAS;IAEf;;;;OAIG;IACH,OAAO,EAAE,IAAI;IAEb;;;;;;;OAOG;IACH,UAAU,EAAE,SAAS;IAErB;;;;;;;;OAQG;IACH,aAAa,EAAE,SAAS;IAExB;;;;;;;;;OASG;IACH,aAAa,EAAE,SAAS;IAExB;;;;;;;;;OASG;IACH,aAAa,EAAE,SAAS;IAExB;;;;OAIG;IACH,WAAW,EAAE,SAAS;CACtB,CAAC"}
|