Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as torrentStream from 'torrent-stream';
- import * as fs from 'fs';
- console.log('Starting...');
- const magnet = 'magnet:?xt=urn:btih:c3137539e88e19c89e7c3c52cfe67701e41bde16&dn=Offspring.S07E05.480p.x264-mSD&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fzer0day.ch%3A1337&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969'
- const engine = torrentStream(magnet, {
- connections: 100,
- uploads: 1,
- path: '/test',
- verify: false,
- });
- console.log('Client created');
- engine.on('ready', () => {
- console.log('Client ready');
- });
- engine.on('error', (err: string) => {
- console.log(err);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement