I use NPM package create-torrent to create a torrent file.
var createTorrent = require('create-torrent')
var fs = require('fs')
createTorrent('./files/Snatch.S01E06.720p.WEB.rus.LostFilm.TV.mp4', function (err, torrent) {
if (!err) {
// `torrent` is a Buffer with the contents of the new .torrent file
fs.writeFile('./files/Snatch.S01E06.720p.WEB.rus.LostFilm.TV.mp4.torrent', torrent, (err) => {
if (err) throw err;
console.log('The file has been saved!');
});
}
})
After The file has been saved! I seed my file:
const WebTorrent = require('webtorrent');
const client = new WebTorrent();
const fs = require('fs');
fs.readFile('./files/Snatch.S01E06.720p.WEB.rus.LostFilm.TV.mp4.torrent', (err, data) => {
if (err) throw err;
client.seed(data, function (torrent) {
console.log('Client is seeding:', torrent.magnetURI)
})
});
I saw
Client is seeding: magnet:?xt=urn:btih:aa5603103e011129e1244ce355e6ec75cf363789&dn=Unnamed+Torrent+1491935616105&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com
but when I try to download my torrent on my and my wife's laptop but I always see 0 peers.
I also uploaded my torrent file here: https://instant.io/#b027d56610be24a70ae07bd5da97abe440178c0e
via rel1x
No comments:
Post a Comment