Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stiv-yakovenko opened this issue Jul 5, 2016 · 4 comments

Comments

@stiv-yakovenko
Copy link

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
Copy link

wjianwei126 commented Jul 22, 2016

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

@jodevak
Copy link

jodevak commented Jan 7, 2017

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
Copy link
Author

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

@jodevak
Copy link

jodevak commented Jan 8, 2017

@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 .
#178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants