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 up[CLOSED] Path option not working #137
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report. Can you share the code you're using? Also, can you check which version of bittorrent-client you're using? There were a lot of improvements recently. |
This comment has been minimized.
This comment has been minimized.
|
The version is 0.8.0 var client = BitTorrentClient({ |
This comment has been minimized.
This comment has been minimized.
|
Can you share the magnet uri you're using? Email works: feross@gmail.com |
This comment has been minimized.
This comment has been minimized.
|
Yea of course. |
This comment has been minimized.
This comment has been minimized.
|
So, the issue is that the var BitTorrentClient = require('./')
var fs = require('fs')
var client = BitTorrentClient({})
client.add('<magnet>')
client.on('torrent', function (torrent) {
console.log(torrent.name)
torrent.files.forEach(function (file) {
console.log(file.name)
file.createReadStream().pipe(fs.createWriteStream('/path/to/folder/that/exists/' + file.name))
})
})Let me know if that code works for you. |
This comment has been minimized.
This comment has been minimized.
|
Yes, now the files are there, although I am still getting this error multiple times in the console. |
This comment has been minimized.
This comment has been minimized.
|
The message about "Wire not speaking BitTorrent protocol" is not really an error. It just means that one of the peers the client tried to connect to didn't send the expected handshake and so the connection with this peer was closed. I updated the underlying module to not spew this debugging message onto the console. If you run |
This comment has been minimized.
This comment has been minimized.
|
Closing this issue for now, but let me know (via a new issue) if you have any more issues! |
Friday Aug 22, 2014 at 06:00 GMT
Originally opened as https://github.com/feross/bittorrent-client/issues/41
Hello guys,
I wanted to use bittorrent client, but upon adding torrent, the CPU usage goes crazy, but this is already reported. The problem for me is that something is being downloaded, but I can't find it anywhere and after a minute or two I am getting "Wire not speaking BitTorrent protocol" a lot of it, until I just stop the script.