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

Add an 'announce' option to announce to custom trackers #427

Merged
merged 1 commit into from Dec 27, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -43,6 +43,7 @@ var argv = minimist(process.argv.slice(2), {
s: 'select',
i: 'index',
o: 'out',
a: 'announce',
q: 'quiet',
h: 'help',
v: 'version'
@@ -63,6 +64,7 @@ var argv = minimist(process.argv.slice(2), {
],
string: [ // options that are always strings
'out',
'announce',
'blocklist',
'subtitles',
'on-done',
@@ -201,6 +203,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
@@ -459,7 +462,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)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.