Adding an exit to scan torrents.

This commit is contained in:
Dessalines 2019-02-19 18:04:09 -08:00
parent 8a405f205d
commit 376e227d1c
2 changed files with 6 additions and 0 deletions

5
.gitignore vendored
View File

@ -4,3 +4,8 @@ torrents.db
.vscode
backups
torrents
scripts/prune_currents.out
scripts/scan_torrents.out
scripts/skytorrents_scan.out
scripts/update.out
infohashes_scanned.txt

View File

@ -76,6 +76,7 @@ function writeFile() {
.reduce((r, k) => (r[k] = torrentFiles[k], r), {});
fs.writeFileSync(jsonFile, JSON.stringify(torrentFiles, null, 2));
console.log(`${jsonFile} written.`);
process.exit();
}
function read(uri, options) {