diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-17 14:05:40 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-17 14:05:52 +0100 |
commit | c1e580ec06b9065bc63ebf987d5306c03da237e0 (patch) | |
tree | 079f72ccc9d3f54ba14c7bf19e57ec67b813f6c3 /pyload/datatypes | |
parent | Merge pull request #365 from vuolter/m/timestamp (diff) | |
download | pyload-c1e580ec06b9065bc63ebf987d5306c03da237e0.tar.xz |
refactored pluginManager
Diffstat (limited to 'pyload/datatypes')
-rw-r--r-- | pyload/datatypes/PyFile.py | 13 |
1 files changed, 7 insertions, 6 deletions
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 |