summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-05 00:54:06 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-05 00:54:06 +0200
commitd7abe9dbbbfd182fb7b549b8a4bd8fffecbf9e5e (patch)
tree3ab07d46539b5e7b3a95e0aac80c76d111a02888 /pyLoadCore.py
parentfix for gui (diff)
downloadpyload-d7abe9dbbbfd182fb7b549b8a4bd8fffecbf9e5e.tar.xz
single file abort
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 4e0e8cb08..1d7d31469 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -552,11 +552,18 @@ class ServerMethods():
return lines[offset:]
def stop_downloads(self):
- pyfiles = self.files.cache.values()
+ pyfiles = self.core.files.cache.values()
for pyfile in pyfiles:
pyfile.abortDownload()
+ def abort_files(self, fids):
+ pyfiles = self.core.files.cache.values()
+
+ for pyfile in pyfiles:
+ if pyfile.id in fids:
+ pyfile.abortDownload()
+
def stop_download(self, type, id):
if self.core.files.cache.has_key(id):
self.core.files.cache[id].abortDownload()