Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-03-20 05:44:54 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-03-20 05:44:54 +0300
commitc254fda44c7d498f08b73e134b7994f0394a9e29 (patch)
tree0abe5dde7381490558a3e5bfe5236d277152bcd0 /bin
parent822b8df7fce555807a298571643694c43bf3ef2e (diff)
cli: `out` option won't create extra "webtorrent/<infohash>" folder
Fixes https://github.com/feross/webtorrent/issues/156
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 2511087..c832e50 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -213,7 +213,7 @@ function runDownload (torrentId) {
})
}
- var torrent = client.add(torrentId, (argv.out ? { tmp: argv.out } : {}))
+ var torrent = client.add(torrentId, { path: argv.out })
torrent.on('infoHash', function () {
function updateMetadata () {