From d7abe9dbbbfd182fb7b549b8a4bd8fffecbf9e5e Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 5 Aug 2010 00:54:06 +0200 Subject: single file abort --- pyLoadCore.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') 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() -- cgit v1.2.3