diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-14 14:07:49 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-09-14 14:07:49 +0200 |
commit | 71467f2866e96cdbe911cd9996305b7e83eef2a2 (patch) | |
tree | e72c3fb58981533f3740a736947840a5cc7a3ed5 /pyLoadCore.py | |
parent | reverted, closed #129 (diff) | |
download | pyload-71467f2866e96cdbe911cd9996305b7e83eef2a2.tar.xz |
link ordering for webif
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index def3d4df5..60bfdc660 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -695,6 +695,10 @@ class ServerMethods(): """put package back to collector""" self.core.files.setPackageLocation(pid, 0) + def move_package(self, dest, pid): + if dest not in (0,1): return + self.core.files.setPackageLocation(pid, dest) + def is_captcha_waiting(self): self.core.lastClientConnected = time.time() task = self.core.captchaManager.getTask() @@ -744,6 +748,9 @@ class ServerMethods(): def order_package(self, id, pos): self.core.files.reorderPackage(id, pos) + def order_file(self, id, pos): + self.core.files.reorderFile(id, pos) + def is_time_download(self): start = self.core.config['downloadTime']['start'].split(":") end = self.core.config['downloadTime']['end'].split(":") |