UTorrent.addTorrentUrl()

Add a torrent URL to the uTorrent client.

Usage

Hover over inputs/exits for more info.

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


// Add a torrent URL to the uTorrent client.

UTorrent.addTorrentUrl({

host: 'localhost',

port: 26085,

username: 'admin',

password: '12345',

torrentUrl: '',

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'
torrentUrl required

''
downloadDir

0
path

Download directory path relative to downloadDir index

'/dir/path/'

Exits

error

An unexpected error occurred.

success

OK.