Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added command to override default download path #174

Merged
merged 4 commits into from Nov 3, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

changed command to out

  • Loading branch information
opfl
opfl committed Nov 2, 2014
commit d29808e4e9e953d84978f7f3c2900d82ac7b41b8
@@ -30,7 +30,7 @@ var argv = minimist(process.argv.slice(2), {
i: 'index',
n: 'no-quit',
r: 'remove',
d: 'download',
o: 'out',
q: 'quiet',
h: 'help',
v: 'version'
@@ -95,7 +95,7 @@ if (argv.help || !torrentId) {
-i, --index stream a particular file from torrnet (by index)
-n, --no-quit do not quit webtorrent on vlc exit
-r, --remove remove downloaded files on exit
-d, --download [path] overrides the default tmp directory
-o, --out [path] overrides the default tmp directory
-q, --quiet silence stdout
-h, --help display this help message
-v, --version print the current version
@@ -156,7 +156,7 @@ function remove (cb) {
client.destroy(cb)
}

var torrent = client.add(torrentId, (argv.download ? { tmp: argv.download } : {}))
var torrent = client.add(torrentId, (argv.out ? { tmp: argv.out } : {}))

torrent.on('infoHash', function () {
function updateMetadata () {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.