From 386177722c155e44ade831339b4a891a60be7183 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 2 Jan 2014 23:45:06 +0100 Subject: fix small decrypter bugs --- pyload/threads/DecrypterThread.py | 5 +++-- 1 file 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: -- cgit v1.2.3