From c1e580ec06b9065bc63ebf987d5306c03da237e0 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 17 Nov 2013 14:05:40 +0100 Subject: refactored pluginManager --- pyload/datatypes/PyFile.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'pyload/datatypes/PyFile.py') diff --git a/pyload/datatypes/PyFile.py b/pyload/datatypes/PyFile.py index de7288d22..3ce114beb 100644 --- a/pyload/datatypes/PyFile.py +++ b/pyload/datatypes/PyFile.py @@ -37,10 +37,11 @@ statusMap = { "downloading": 10, "temp. offline": 11, "aborted": 12, - "decrypting": 13, - "processing": 14, - "custom": 15, - "unknown": 16, + "not possible": 13, + "decrypting": 14, + "processing": 15, + "custom": 16, + "unknown": 17, } @@ -138,7 +139,7 @@ class PyFile(object): def initPlugin(self): """ inits plugin instance """ if not self.plugin: - self.pluginclass = self.m.core.pluginManager.getPlugin(self.pluginname) + self.pluginclass = self.m.core.pluginManager.getPluginClass(self.pluginname) self.plugin = self.pluginclass(self) @read_lock @@ -160,7 +161,7 @@ class PyFile(object): self.setStatus(status) def getStatusName(self): - if self.status not in (13, 14) or not self.statusname: + if self.status not in (15, 16) or not self.statusname: return self.m.statusMsg[self.status] else: return self.statusname -- cgit v1.2.3