From 3fe887026d035422a01a8bf5c76686370ed58dd5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 28 May 2011 17:06:55 +0200 Subject: fix dlc, new cli functions, new locale --- pyLoadCli.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pyLoadCli.py') diff --git a/pyLoadCli.py b/pyLoadCli.py index bf96f3cca..cc2598600 100644 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -310,6 +310,16 @@ class Cli: elif command == "kill": self.client.kill() + elif command == "restart_file": + for x in args: + self.client.restartFile(int(x)) + print "Files restarted." + elif command == "restart_package": + for pid in args: + pack = self.client.getPackageData(int(pid)) + self.client.restartPackage(pack.pid) + print "Packages restarted." + else: print_commands() @@ -393,6 +403,8 @@ def print_commands(): ("del_file ...", _("Delete Files from Queue/Collector")), ("del_package ...", _("Delete Packages from Queue/Collector")), ("move ...", _("Move Packages from Queue to Collector or vice versa")), + ("restart_file ...", _("Restart files")), + ("restart_package ...", _("Restart packages")), ("pause", _("Pause the server")), ("unpause", _("continue downloads")), ("toggle", _("Toggle pause/unpause")), -- cgit v1.2.3