summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-28 17:06:55 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-28 17:06:55 +0200
commit3fe887026d035422a01a8bf5c76686370ed58dd5 (patch)
tree6db7e571acfc2241d128b4aa81dd5f5081cb38b6 /pyLoadCli.py
parentchange password in webif (diff)
downloadpyload-3fe887026d035422a01a8bf5c76686370ed58dd5.tar.xz
fix dlc, new cli functions, new locale
Diffstat (limited to 'pyLoadCli.py')
-rw-r--r--pyLoadCli.py12
1 files changed, 12 insertions, 0 deletions
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 <fid> <fid2>...", _("Delete Files from Queue/Collector")),
("del_package <pid> <pid2>...", _("Delete Packages from Queue/Collector")),
("move <pid> <pid2>...", _("Move Packages from Queue to Collector or vice versa")),
+ ("restart_file <fid> <fid2>...", _("Restart files")),
+ ("restart_package <pid> <pid2>...", _("Restart packages")),
("pause", _("Pause the server")),
("unpause", _("continue downloads")),
("toggle", _("Toggle pause/unpause")),