diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-02 11:46:37 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-02 11:46:51 +0200 |
commit | d060b308d6bfd77a9159e199cbdd8d74765fced2 (patch) | |
tree | 8bdd8196a10dfd2c01f2dd1a029563f0c60d3068 | |
parent | Quote issue fixed in replace_module_imports (diff) | |
download | pyload-d060b308d6bfd77a9159e199cbdd8d74765fced2.tar.xz |
fixed aborting downloads
-rw-r--r-- | pyload/datatypes/PyFile.py | 5 | ||||
-rw-r--r-- | pyload/datatypes/PyPackage.py | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/pyload/datatypes/PyFile.py b/pyload/datatypes/PyFile.py index f15ad7ee0..28ede5f8f 100644 --- a/pyload/datatypes/PyFile.py +++ b/pyload/datatypes/PyFile.py @@ -203,7 +203,10 @@ class PyFile(object): while self.id in self.m.core.threadManager.processingIds(): self.abort = True if self.plugin and self.plugin.req: - self.plugin.req.abortDownloads() + self.plugin.req.abort() + if self.plugin.dl: + self.plugin.dl.abort() + sleep(0.1) self.abort = False diff --git a/pyload/datatypes/PyPackage.py b/pyload/datatypes/PyPackage.py index d23ae88e7..ba38781eb 100644 --- a/pyload/datatypes/PyPackage.py +++ b/pyload/datatypes/PyPackage.py @@ -67,8 +67,8 @@ class PyPackage: ) def getChildren(self): - """get information about contained links""" - return self.m.getPackageData(self.pid)["links"] + """get fids of container files""" + return self.m.getPackageInfo(self.pid).fids def getPath(self, name=""): self.timestamp = time() |