Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upIs it possible to add trackers programmatically? #770
Comments
This comment has been minimized.
This comment has been minimized.
|
Sorry -- this is not supported. You have to add trackers upfront: client.add(torrentId, { announce: 'wss://tracker.com' })What is the use case for this? |
This comment has been minimized.
This comment has been minimized.
|
I'm creating a private tracker to allow the download of software from my site. client.add(torrentId, { announce: ''wss://tracker.com' }) What is the use case for this? — |
This comment has been minimized.
This comment has been minimized.
|
You might consider using the You could use it like this: var token = 1
client.add(torrentId, {
// include a token parameter in announce requests to the server
getAnnounceOpts: function () {
return {
token: token
}
}
})
// update the token every 10s
setInterval(function () {
token += 1
}, 10000) |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Hi,
I'm looking for the ability to add trackers to a torrent that is already downloading, is this possible.
I'm looking for something along the lines of: