(trunk, web) #5510 'add file renaming to transmission web interface' -- added with patch from mark ablov

This commit is contained in:
Jordan Lee
2013-10-20 18:39:07 +00:00
parent cd00ad4f55
commit 258b6cf029
2 changed files with 56 additions and 1 deletions

View File

@@ -105,7 +105,16 @@ TransmissionRemote.prototype =
var o = { method: 'port-test' };
this.sendRequest(o, callback, context, async);
},
renameTorrent: function(torrentIds, oldpath, newname, callback, context) {
var o = { method: 'torrent-rename-path',
arguments: { 'ids': torrentIds,
'path': oldpath,
'name': newname }
};
this.sendRequest(o, callback, context);
},
loadDaemonStats: function(callback, context, async) {
var o = { method: 'session-stats' };
this.sendRequest(o, callback, context, async);