Add torrent priority meter

This commit is contained in:
John Furrow
2016-02-13 23:18:32 -08:00
parent 1f6c01fdd6
commit 9f7d33444d
15 changed files with 611 additions and 213 deletions
+29 -1
View File
@@ -184,7 +184,7 @@ var client = {
});
},
setPriority: function (hash, data, callback) {
setFilePriority: function (hash, data, callback) {
// TODO Add support for multiple hashes.
var fileIndex = data.fileIndices[0];
@@ -214,6 +214,34 @@ var client = {
});
},
setPriority: function (hash, data, callback) {
// TODO Add support for multiple hashes.
var multicall = [
[
{
methodName: 'd.set_priority',
params: [
hash,
data.priority
]
},
{
methodName: 'd.update_priorities',
params: [
hash
]
}
]
];
rTorrent.get('system.multicall', multicall)
.then(function(data) {
callback(null, data);
}, function(error) {
callback(error, null);
});
},
setSpeedLimits: function(data, callback) {
var methodName = 'throttle.global_down.max_rate.set';