summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-27 22:16:51 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-27 22:16:51 +0100
commit090c9d2abdac07025fe6d7351e376e85aabc0891 (patch)
tree8177a488a95cc977bab10b66caa2d4b738a18d20 /pyLoadCore.py
parentcloses #51 (diff)
downloadpyload-090c9d2abdac07025fe6d7351e376e85aabc0891.tar.xz
fixed uploaded.to and netload.in, gui clipboard check
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index c062374bc..d0a6195d4 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -537,6 +537,14 @@ class ServerMethods():
def stop_downloads(self):
self.core.thread_list.stopAllDownloads()
+ def stop_download(self, type, id):
+ if type == "pack":
+ ids = self.core.file_list.getPackageFiles(id)
+ for fid in ids:
+ self.core.file_list.packager.abortFile(fid)
+ else:
+ self.core.file_list.packager.abortFile(id)
+
def update_available(self):
return self.core.update_available