summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-23 00:04:36 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-23 00:04:36 +0100
commita5ff0482ede8bd7bd932482887f2f7cdae5039d9 (patch)
tree0d59800acd09c72ddb9c1e360d6a9c065cf184b7 /pyLoadCore.py
parentmore docstrings, small design changes (diff)
downloadpyload-a5ff0482ede8bd7bd932482887f2f7cdae5039d9.tar.xz
core: downloadlimit is not far away ;) gui: restart download action
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 8ca45f2e2..232adc253 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -473,7 +473,14 @@ class ServerMethods():
self.core.file_list.collector.removeFile(fid)
def push_package_2_queue(self, id):
- self.core.file_list.packager.pushPackage2Queue(id)
+ self.core.file_list.packager.pushPackage2Queue(id)
+
+ def restart_package(self, packid):
+ for id in self.core.file_list.packager.getPackageFiles(packid):
+ self.core.file_list.packager.resetFileStatus(id)
+
+ def restart_file(self, fileid):
+ self.core.file_list.packager.resetFileStatus(fileid)
#def move_urls_up(self, ids):
# for id in ids: