diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-04 23:11:15 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-04 23:11:15 +0200 |
commit | 850c373f1a61b135cf71d13b9cde9c4d41463f9b (patch) | |
tree | d6c0bd18be3818ae1244b8b52516f03bc3c53c53 /pyLoadCli.py | |
parent | closed #338 (diff) | |
download | pyload-850c373f1a61b135cf71d13b9cde9c4d41463f9b.tar.xz |
fixed some bugs, new externalscripts plugin
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-x | pyLoadCli.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py index f572cf7e5..438be61aa 100755 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -289,14 +289,14 @@ class Cli: print _("Please use this syntax: add <Package name> <link> <link2> ...") return - self.client.addPackage(args[0], args[1:], 0) + self.client.addPackage(args[0], args[1:], Destination.Queue) elif command == "add_coll": if len(args) < 2: print _("Please use this syntax: add <Package name> <link> <link2> ...") return - self.client.addPackage(args[0], args[1:], 1) + self.client.addPackage(args[0], args[1:], Destination.Collector) elif command == "del_file": self.client.deleteFiles([int(x) for x in args]) @@ -308,7 +308,7 @@ class Cli: elif command == "move": for pid in args: - pack = self.client.getPackageData(int(pid)) + pack = self.client.getPackageInfo(int(pid)) self.client.movePackage((pack.dest + 1) % 2, pack.pid) elif command == "pause": @@ -328,8 +328,7 @@ class Cli: print "Files restarted." elif command == "restart_package": for pid in args: - pack = self.client.getPackageData(int(pid)) - self.client.restartPackage(pack.pid) + self.client.restartPackage(int(pid)) print "Packages restarted." else: |