diff options
Diffstat (limited to 'Plugins/Plugin.py')
-rw-r--r-- | Plugins/Plugin.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py index 28de69928..c882c34bb 100644 --- a/Plugins/Plugin.py +++ b/Plugins/Plugin.py @@ -13,13 +13,13 @@ class Plugin(): self.config = {} props = {} props['name'] = "Base Plugin" - props['pattern'] = None - props['type'] = "hoster" props['version'] = "0.1" + props['pattern'] = None + props['type'] = "hoster" props['format'] = "*.py" props['description'] = """bla""" - props['author_name'] = ("RaNaN", "spoob") - props['author_mail'] = ("RaNaN@pyload.org", "spoob@pyload.org") + props['author'] = "Spoob" + props['author_email'] = "nn@nn.de" self.props = props self.parent = parent self.req = Request() @@ -49,6 +49,7 @@ class Plugin(): """ return self.parent.url + def get_file_name(self): return re.findall("([^\/=]+)", self.parent.url)[-1] @@ -72,7 +73,8 @@ class Plugin(): if self.parser.has_section(self.props['name']): for option in self.parser.options(self.props['name']): - self.config[option] = self.parser.get(self.props['name'], option, raw=True) + self.config[option] = self.parser.get(self.props['name'], option) + self.config[option] = False if self.config[option].lower() == 'false' else self.config[option] def __call__(self): return self.props['name'] |