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 upWT can't handle magnets from private trackers, only torrent files #511
Comments
This comment has been minimized.
This comment has been minimized.
|
There's probably a custom field in the .torrent file that the tracker server needs and Can you run the following code on the torrent file? var path = 'path/to/file.torrent'
console.log(Object.keys(bencode.decode(fs.readFileSync(path))))
console.log(Object.keys(bencode.decode(fs.readFileSync(path)).info))You will need to install this package:
Then paste the output here. |
This comment has been minimized.
This comment has been minimized.
|
Result: |
This comment has been minimized.
This comment has been minimized.
|
Do you have a parallel magnet link for the torrent file you're using, from the same source? Could you run this on it? var magnet = require('magnet-uri')
var uri = 'magnet:?xt...'
console.log(Object.keys(magnet(uri)))You'll need to install this package first:
|
This comment has been minimized.
This comment has been minimized.
|
No, sorry, the tracker does not specify magnets |
This comment has been minimized.
This comment has been minimized.
|
My understanding of the way that "private torrents" work is that they just use an http tracker server and put a unique identifier into the announce url (for example: a query param). There's no reason this shouldn't work fine as a magnet uri. The tracker will still be contacted, as before. The only reason I can think of why this isn't working is that other torrent clients that are using the private .torrent file (with the "private: 1" flag) have disabled the In any case, I think WebTorrent is producing the correct magnet uri here, so there's nothing else to do. |
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. |
If I use WebTorrent in the command line, and pass it the location of a downloaded .torrent file from a private tracker, it functions as expected.
If I pass the same torrent file through parse-torrent to get the magnet URI and then pass this magnet to WebTorrent in the cli, it does not find any peers.
E.g.
works, but the output from
does not work when passed to the WebTorrent CLI. I can't upload the torrent file here, as it contains the login token for the private tracker, but I can send it by email if you need it.