UTorrent.addTorrent()

Add a Torrent file to the uTorrent client.

Usage

Hover over inputs/exits for more info.

var UTorrent = require('machinepack-utorrent');


// Add a Torrent file to the uTorrent client.

UTorrent.addTorrent({

host: 'localhost',

port: 26085,

username: 'admin',

password: '12345',

torrentContents: 'Torrent Contents',

downloadDir: 0,

path: '/dir/path/',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

host required

'localhost'
port required

26085
username required

'admin'
password required

'12345'
torrentContents required

'Torrent Contents'
downloadDir

0
path

Download directory path relative to downloadDir index

'/dir/path/'

Exits

error

An unexpected error occurred.

success

OK.