summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
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