summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/internal/MultiHook.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/internal/MultiHook.py')
-rw-r--r--pyload/plugin/internal/MultiHook.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/internal/MultiHook.py b/pyload/plugin/internal/MultiHook.py
index acf17f6dc..e15d5afda 100644
--- a/pyload/plugin/internal/MultiHook.py
+++ b/pyload/plugin/internal/MultiHook.py
@@ -8,18 +8,18 @@ from pyload.utils import decode, remove_chars
class MultiHook(Hook):
- __name = "MultiHook"
- __type = "hook"
- __version = "0.40"
+ __name__ = "MultiHook"
+ __type__ = "hook"
+ __version__ = "0.40"
- __config = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
+ __config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
("reload" , "bool" , "Reload plugin list" , True ),
("reloadinterval", "int" , "Reload interval in hours" , 12 )]
- __description = """Hook plugin for multi hoster/crypter"""
- __license = "GPLv3"
- __authors = [("pyLoad Team" , "admin@pyload.org" ),
+ __description__ = """Hook plugin for multi hoster/crypter"""
+ __license__ = "GPLv3"
+ __authors__ = [("pyLoad Team" , "admin@pyload.org" ),
("Walter Purcaro", "vuolter@gmail.com")]
@@ -252,8 +252,8 @@ class MultiHook(Hook):
# create new regexp
regexp = r'.*(?P<DOMAIN>%s).*' % "|".join(x.replace('.', '\.') for x in plugins)
- if hasattr(self.pluginclass, "__pattern") and isinstance(self.pluginclass.__pattern, basestring) and '://' in self.pluginclass.__pattern:
- regexp = r'%s|%s' % (self.pluginclass.__pattern, regexp)
+ if hasattr(self.pluginclass, "__pattern__") and isinstance(self.pluginclass.__pattern__, basestring) and '://' in self.pluginclass.__pattern__:
+ regexp = r'%s|%s' % (self.pluginclass.__pattern__, regexp)
self.logDebug("Regexp: %s" % regexp)
@@ -280,5 +280,5 @@ class MultiHook(Hook):
# reset pattern
hdict = self.core.pluginManager.plugins[self.plugintype][self.pluginname]
- hdict['pattern'] = getattr(self.pluginclass, "__pattern", r'^unmatchable$')
+ hdict['pattern'] = getattr(self.pluginclass, "__pattern__", r'^unmatchable$')
hdict['re'] = re.compile(hdict['pattern'])