mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 227 forks source link

torrent-stream doesn't download torrent, correctly downloaded by uTorrent #168

Open stiv-yakovenko opened 8 years ago

stiv-yakovenko commented 8 years ago
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
    });
});

This torrent is correctly downloaded by utorrent, but it doesn't work in nodejs. Any ideas why?

wjianwei126 commented 7 years ago

ur right not all links is downloadable from torrent-stream .... wondering what utorrent is doing under the hood...

jodevak commented 7 years ago

Im facing the same problem with this magnet link magnet:?xt=urn:btih:LOSJHGQAVGZBMKNAVV6TO2EYW5UNTF5D&dn=Scikit-learn_%20Machine%20Learning%20in%20Python.pdf&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&xl=42310

Wondering, whats going wrong? Though; Im noticing those errors on file names containing forbidden characters in windows/linux naming

stiv-yakovenko commented 7 years ago

@jodevak , well for me, (as i remember it), it finally downloaded it. I guess its bootstrappeing, try to wait few mins?

jodevak commented 7 years ago

@stiv-yakovenko , noticed the problem on windows with a bunch of magnets, and i faced the same problem. Actually i made a pull request with a fix to it ( index.js), i hope you check it . https://github.com/mafintosh/torrent-stream/pull/178