From 825b0eed54123f81ce4fe67ba638095aa7eda80b Mon Sep 17 00:00:00 2001 From: Brad Marsden Date: Sun, 2 Jun 2024 16:35:03 +0100 Subject: [PATCH] fix: -s / --select not working (#304) * fix: select only being set too late, causing more than intended to be reserved and downloaded. * fix: linting --- bin/cmd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index e1020a4c..56b1ff48 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -302,15 +302,15 @@ async function runDownload (torrentId) { announce: argv.announce }) + if ('select' in argv) { + torrent.so = argv.select.toString() + } + if (argv.verbose) { torrent.on('warning', handleWarning) } torrent.on('infoHash', () => { - if ('select' in argv) { - torrent.so = argv.select.toString() - } - if (argv.quiet) return updateMetadata()