diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-28 15:31:41 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-28 15:31:41 +0200 |
commit | c6c9904590e8b184af34cedb38d2f63f2cfff2f4 (patch) | |
tree | 0a136a036939ea2aad28aa97f383d2c09cad2639 /Plugins/Plugin.py | |
parent | time shedule fix (diff) | |
download | pyload-c6c9904590e8b184af34cedb38d2f63f2cfff2f4.tar.xz |
rapidshare premium support
Diffstat (limited to 'Plugins/Plugin.py')
-rw-r--r-- | Plugins/Plugin.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py index 0345d7b1d..7b7bd1d7e 100644 --- a/Plugins/Plugin.py +++ b/Plugins/Plugin.py @@ -13,6 +13,7 @@ class Plugin(): self.plugin_pattern = None self.plugin_type = "hoster" self.parser = ConfigParser.SafeConfigParser() + self.config = {} props = {} props['name'] = "Base Plugin" props['version'] = "0.1" @@ -68,5 +69,12 @@ class Plugin(): self.parser.read("pluginconfig") return self.parser.get(self.props['name'], value) + def read_config(self): + self.parser.read("pluginconfig") + + 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) + def __call__(self): - return self.plugin_name + return self.props['name'] |