summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-10 21:52:59 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-10 21:52:59 +0200
commit141a87a537baa322d20c54cd7632a2401d7ffe9d (patch)
treec1eab088418e030049fd831a8f3f921c06f90f68
parentrewritten cli, closed #275, #304 (diff)
downloadpyload-141a87a537baa322d20c54cd7632a2401d7ffe9d.tar.xz
fix cli
-rw-r--r--module/cli/ManageFiles.py4
-rw-r--r--pyLoadCli.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/module/cli/ManageFiles.py b/module/cli/ManageFiles.py
index 1d04c4c49..f0f9ec93a 100644
--- a/module/cli/ManageFiles.py
+++ b/module/cli/ManageFiles.py
@@ -30,7 +30,7 @@ class ManageFiles(Handler):
""" possibility to manage queue/collector """
def init(self):
- self.target = 1 #queue
+ self.target = 1 #queue and collector are swapped
self.pos = 0 #position in queue
self.package = -1 #choosen package
self.mode = "" # move/delete/restart
@@ -201,4 +201,4 @@ class ManageFiles(Handler):
return ret
else:
- return [int(x) for x in inp.split(",")] \ No newline at end of file
+ return [int(x) for x in inp.split(",")]
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 5a4a152f2..7fbfd3632 100644
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -276,14 +276,14 @@ class Cli:
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:], 0)
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:], 0)
+ self.client.addPackage(args[0], args[1:], 1)
elif command == "del_file":
self.client.deleteFiles([int(x) for x in args])