【发布时间】:2016-07-09 02:06:11
【问题描述】:
我用这段代码来下载种子:
var torrentStream = require('torrent-stream');
var engine = torrentStream('magnet:?xt=urn:btih:44A91362AFFF802F9058993B109C544ACC6B4813');
engine.on('ready', function(e) {
engine.files.forEach(function(file) {
console.log('filename:', file.name);
var stream = file.createReadStream();
// stream is readable stream to containing the file content
});
});
utorrent 正确下载了这个 torrent,但它在 nodejs 中不起作用(没有任何反应)。任何想法为什么?可能是p2p网络没有被引导?我该怎么做?
感谢
【问题讨论】:
标签: node.js torrent webtorrent