summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/Plugin.py')
-rw-r--r--pyload/manager/Plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/manager/Plugin.py b/pyload/manager/Plugin.py
index 69a77fdf8..905ce524e 100644
--- a/pyload/manager/Plugin.py
+++ b/pyload/manager/Plugin.py
@@ -230,7 +230,7 @@ class PluginManager(object):
elif name not in self.plugins[type]:
self.core.log.warning(_("Plugin [%(type)s] %(name)s not found | Using plugin: [internal] BasePlugin")
% {'name': name, 'type': type})
- return self.internalPlugins["BasePlugin"]
+ return self.internalPlugins['BasePlugin']
else:
return self.plugins[type][name]
@@ -313,7 +313,8 @@ class PluginManager(object):
else: user = 0 # used as bool and int
split = fullname.split(".")
- if len(split) != 4 - user: return
+ if len(split) != 4 - user:
+ return
type, name = split[2 - user:4 - user]
if type in self.plugins and name in self.plugins[type]: