summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-02 23:45:06 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-02 23:45:06 +0100
commit386177722c155e44ade831339b4a891a60be7183 (patch)
tree64c5aebfd7a3f7660497d8dd6dac6f951bae3898
parentcolored log on windows (diff)
downloadpyload-386177722c155e44ade831339b4a891a60be7183.tar.xz
fix small decrypter bugs
-rw-r--r--pyload/threads/DecrypterThread.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/threads/DecrypterThread.py b/pyload/threads/DecrypterThread.py
index c7a01683a..9f796da22 100644
--- a/pyload/threads/DecrypterThread.py
+++ b/pyload/threads/DecrypterThread.py
@@ -36,7 +36,7 @@ class DecrypterThread(BaseThread):
if links:
self.log.info(
_("Decrypted %(count)d links into package %(name)s") % {"count": len(links), "name": pack.name})
- self.m.core.api.addFiles(self.pid, [l.url for l in links])
+ self.m.core.api.addLinks(self.pid, [l.url for l in links])
# TODO: add single package into this one and rename it?
# TODO: nested packages
@@ -63,7 +63,8 @@ class DecrypterThread(BaseThread):
#TODO: dependency check, there is a new error code for this
# TODO: decrypting with result yielding
if not klass:
- plugin_result.extend(LinkStatus(url, url, -1, DS.NotPossible, name) for url in urls)
+ if err:
+ plugin_result.extend(LinkStatus(url, url, -1, DS.NotPossible, name) for url in urls)
self.log.debug("Plugin for decrypting was not loaded")
else:
try: