summaryrefslogtreecommitdiffstats
path: root/pyload/manager
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager')
-rw-r--r--pyload/manager/Plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyload/manager/Plugin.py b/pyload/manager/Plugin.py
index 118dea8f0..c6ba5e81b 100644
--- a/pyload/manager/Plugin.py
+++ b/pyload/manager/Plugin.py
@@ -110,6 +110,9 @@ class PluginManager(object):
if name[-1] == ".":
name = name[:-4]
+ if not re.search("class\\s+%s\\(" % name, content):
+ self.core.log.error(_("invalid classname: %s ignored") % join(pfolder, f))
+
version = self.VERSION.findall(content)
if version:
version = float(version[0][1])