Permalink
Browse files

Merge pull request #15 from hanfer/master

added move function
  • Loading branch information...
2 parents ad48f95 + 833c166 commit 0c8a8db4f726e8cd35c82115ba2f15a3fd4a122e Tim committed Dec 8, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/transmission.js
View
17 lib/transmission.js
@@ -74,6 +74,23 @@ Transmission.prototype.remove = function(ids, del, callback) {
}
this.callServer(options, callback)
}
+Transmission.prototype.move = function(ids, location, move, callback) {
+ var ids = Array.isArray(ids) ? ids : [ids]
+ if ( typeof move == 'function') {
+ callback = move
+ move = true
+ }
+ var options = {
+ arguments : {
+ ids : ids,
+ location : location,
+ move : move
+ },
+ method : this.methods.torrents.location,
+ tag : uuid()
+ }
+ this.callServer(options, callback)
+}
Transmission.prototype.get = function(ids, callback) {
var options = {
arguments : {

0 comments on commit 0c8a8db

Please sign in to comment.