summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-14 14:07:49 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-14 14:07:49 +0200
commit71467f2866e96cdbe911cd9996305b7e83eef2a2 (patch)
treee72c3fb58981533f3740a736947840a5cc7a3ed5 /pyLoadCore.py
parentreverted, closed #129 (diff)
downloadpyload-71467f2866e96cdbe911cd9996305b7e83eef2a2.tar.xz
link ordering for webif
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py7
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(":")