From 850c373f1a61b135cf71d13b9cde9c4d41463f9b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 4 Jul 2011 23:11:15 +0200 Subject: fixed some bugs, new externalscripts plugin --- pyLoadCli.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'pyLoadCli.py') 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 ...") 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 ...") 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: -- cgit v1.2.3