diff options
author | 2014-01-18 20:52:00 +0100 | |
---|---|---|
committer | 2014-01-18 20:52:00 +0100 | |
commit | 4207037e470c6bd0b3011954b8ccd34a5b32a49d (patch) | |
tree | 96dba4e746f286f2cd02bda8a8f677a9bc214b93 /pyload/threads/DecrypterThread.py | |
parent | additional fix #4 (diff) | |
download | pyload-4207037e470c6bd0b3011954b8ccd34a5b32a49d.tar.xz |
additional fix #6
Diffstat (limited to 'pyload/threads/DecrypterThread.py')
-rw-r--r-- | pyload/threads/DecrypterThread.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/threads/DecrypterThread.py b/pyload/threads/DecrypterThread.py index 1003b36dc..b90e67665 100644 --- a/pyload/threads/DecrypterThread.py +++ b/pyload/threads/DecrypterThread.py @@ -16,7 +16,7 @@ class DecrypterThread(BaseThread): def __init__(self, manager, data, fid, pid, owner): BaseThread.__init__(self, manager, owner) - # [... (plugin, url) ...] + # [... (url, plugin) ...] self.data = data self.fid = fid self.pid = pid @@ -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.files.setDownloadStatus(self.fid, "finished" if not self.error else "failed") + self.m.core.files.setDownloadStatus(self.fid, DS.Finished if not self.error else DS.Failed) self.m.done(self) def decrypt(self, plugin_map, password=None, err=False): @@ -68,7 +68,7 @@ class DecrypterThread(BaseThread): self.error = True if err: plugin_result.extend(LinkStatus(url, url, -1, DS.NotPossible, name) for url in urls) - self.log.debug("Plugin '%s' for decrypting was not loaded" % plugin) + self.log.debug("Plugin '%s' for decrypting was not loaded" % name) else: try: plugin = klass(self.m.core, password) |