Open tsoernes opened 8 years ago
Try console.log'ing in the ready handler and see if the event is fired
Like this engine.on(console.log('ready'), function()
? Yes, it is fired.
console.log('filename:', file.name)
should fire even if the all the files are in a top-level directory, right? If not, how to get the files inside the directory?
@mafintosh what does it mean that the ready handler event is fired, but that no files show up? It's a private tracker, if that means anything.
@tsoernes does this fire?
engine.on('ready', function () {
console.log('ready')
})
@mafintosh No. I also tried replacing : and / in the magnet link with %3A and %2F, but no luck.
@mafintosh the tracker FAQ says: "You have to turn off DHT, Peer Exchange, Local Peer Discovery and DNA in your client. " I tried turning DHT off, but no luck: the ready event is not fired, but execution finishes (it does not with dht:true).
I will also add that dragging and dropping torrent files from this particular tracker does work with popcorn-time, which uses peer-flix.
Take a look:
DHT Off:
DHT On (never finishes):
This is a very strange issue. If I try the magnet link in peerflix-cli, it does not work, but if I download the torrent-file and put it in the cli, it works. Do you have any idea what it could be? I can email you a torrent if that would help.
This is a possible workaround, but it's not pretty:
// Torrent location is relative to the location of this script
var spawn = require('child_process').spawn;
var child = spawn('cmd', ['/c', 'peerflix', torrentFilePath, "--mpchc"]);
child.on('error', function (err) {
console.log('Failed to start child process.');
});
hi i still have this probleme, some magnets don't trigger the engine.on('ready', fn), does anyone have a solution ?
Hi.
I have a simple function:
to which I pass this link:
magnet:?xt=urn:btih:02b6b3ed991edb7f173469f5bf8d8267 7380ea53&tr=http://tracker.torrentleech.org:2710/a/xxxxxx6xxexx44xxa01X772601xxdfc/announce
. (login token hidden)The link works If i open it manually in a torrent program, but
console.log('filename:', file.name);
does not print anything. Nothing happens, execution stops and nothing gets printed. Why?