summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-08 14:44:59 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-08 14:44:59 +0100
commitbac28b7740aae772636d8b90e291d9c17dfd59a7 (patch)
tree08b6bd4f00cf27819f06d24f363d633b852f50a3 /module/PyFile.py
parentsome cleanups (diff)
downloadpyload-bac28b7740aae772636d8b90e291d9c17dfd59a7.tar.xz
new MultiHoster hook
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index b446fde65..0c4c20705 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -51,7 +51,7 @@ class PyFile(object):
"""
__slots__ = ("m", "id", "url", "name", "size", "_size", "status", "pluginname", "packageid",
"error", "order", "lock", "plugin", "waitUntil", "active", "abort", "statusname",
- "reconnected", "progress", "maxprogress", "pluginmodule", "pluginclass")
+ "reconnected", "progress", "maxprogress", "pluginclass")
def __init__(self, manager, id, url, name, size, status, error, pluginname, package, order):
self.m = manager
@@ -91,14 +91,13 @@ class PyFile(object):
size = property(lambda self: self._size, setSize)
def __repr__(self):
- return "PyFile %s: %s@%s" % (self.id, self.name, self.pluginname)
+ return "<PyFile %s: %s@%s>" % (self.id, self.name, self.pluginname)
@lock
def initPlugin(self):
""" inits plugin instance """
if not self.plugin:
- self.pluginmodule = self.m.core.pluginManager.getPlugin(self.pluginname)
- self.pluginclass = getattr(self.pluginmodule, self.m.core.pluginManager.getPluginName(self.pluginname))
+ self.pluginclass = self.m.core.pluginManager.getPlugin(self.pluginname)
self.plugin = self.pluginclass(self)
@lock