Adding an exit to scan torrents.
This commit is contained in:
parent
8a405f205d
commit
376e227d1c
|
@ -4,3 +4,8 @@ torrents.db
|
||||||
.vscode
|
.vscode
|
||||||
backups
|
backups
|
||||||
torrents
|
torrents
|
||||||
|
scripts/prune_currents.out
|
||||||
|
scripts/scan_torrents.out
|
||||||
|
scripts/skytorrents_scan.out
|
||||||
|
scripts/update.out
|
||||||
|
infohashes_scanned.txt
|
||||||
|
|
|
@ -76,6 +76,7 @@ function writeFile() {
|
||||||
.reduce((r, k) => (r[k] = torrentFiles[k], r), {});
|
.reduce((r, k) => (r[k] = torrentFiles[k], r), {});
|
||||||
fs.writeFileSync(jsonFile, JSON.stringify(torrentFiles, null, 2));
|
fs.writeFileSync(jsonFile, JSON.stringify(torrentFiles, null, 2));
|
||||||
console.log(`${jsonFile} written.`);
|
console.log(`${jsonFile} written.`);
|
||||||
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function read(uri, options) {
|
function read(uri, options) {
|
||||||
|
|
Loading…
Reference in New Issue