summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-18 20:35:50 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-18 20:35:50 +0100
commitaa4644e129dd9600ca5eb70f86dd1d8461ad5304 (patch)
treed1c86507a7bdff297de3346247ec27fa07d3d2e8
parentadditional fix #3 (diff)
downloadpyload-aa4644e129dd9600ca5eb70f86dd1d8461ad5304.tar.xz
additional fix #4
-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 76bd9fce0..1003b36dc 100644
--- a/pyload/threads/DecrypterThread.py
+++ b/pyload/threads/DecrypterThread.py
@@ -44,7 +44,7 @@ class DecrypterThread(BaseThread):
for p in packages:
self.m.core.api.addPackage(p.name, p.getURLs(), pack.password)
- self.m.core.api.files.setDownloadStatus(self.fid, "finished" if not self.error else "failed")
+ self.m.core.files.setDownloadStatus(self.fid, "finished" if not self.error else "failed")
self.m.done(self)
def decrypt(self, plugin_map, password=None, err=False):
@@ -65,9 +65,10 @@ class DecrypterThread(BaseThread):
#TODO: dependency check, there is a new error code for this
# TODO: decrypting with result yielding
if not klass:
+ self.error = True
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")
+ self.log.debug("Plugin '%s' for decrypting was not loaded" % plugin)
else:
try:
plugin = klass(self.m.core, password)