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-12-27 16:16:15 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-27 16:16:15 +0300
commit47f9551a01ac43fa1377eefe65e5428b1e9df14f (patch)
treefed566f49d1de408ffba45fa5a861186b17aeff1 /bin
parent03b164798c49700d61f2142b02370274c36928bb (diff)
parentea009bca0d6939d3e57ffb9ce3dc371504b17156 (diff)
Merge pull request #427 from valeriangalliat/feature/announce
Add an 'announce' option to announce to custom trackers
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 85958c9..2144b14 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -44,6 +44,7 @@ var argv = minimist(process.argv.slice(2), {
s: 'select',
i: 'index',
o: 'out',
+ a: 'announce',
q: 'quiet',
h: 'help',
v: 'version'
@@ -64,6 +65,7 @@ var argv = minimist(process.argv.slice(2), {
],
string: [ // options that are always strings
'out',
+ 'announce',
'blocklist',
'subtitles',
'on-done',
@@ -202,6 +204,7 @@ Options (advanced):
-p, --port [number] change the http server port [default: 8000]
-t, --subtitles [path] load subtitles file
-b, --blocklist [path] load blocklist file/http url
+ -a, --announce [url] tracker URL to announce to
-q, --quiet don't show UI on stdout
--on-done [script] run script after torrent download is done
--on-exit [script] run script before program exit
@@ -473,7 +476,7 @@ function runSeed (input) {
})
.on('error', fatalError)
- client.seed(input)
+ client.seed(input, { announce: argv.announce })
client.on('torrent', function (torrent) {
if (argv.quiet) console.log(torrent.magnetURI)