diff options
author | mkaay <mkaay@mkaay.de> | 2010-01-10 21:29:01 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-01-10 21:29:01 +0100 |
commit | 5448bace91d93bd499e89d9ca5496321b4dc816c (patch) | |
tree | 7442ec4cd400c83dd61d2b0297b748b33dac745a /module | |
parent | webinterface - little css change (diff) | |
download | pyload-5448bace91d93bd499e89d9ca5496321b4dc816c.tar.xz |
fixed mp3convert
Diffstat (limited to 'module')
-rw-r--r-- | module/HookManager.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/Mp3Convert.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index 57b766201..3a1a3d533 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -54,7 +54,7 @@ class HookManager(): module = __import__("module.plugins.hooks."+pluginName, globals(), locals(), [pluginName], -1) pluginClass = getattr(module, pluginName) plugin = pluginClass(self.core) - plugin.setup() + plugin.readConfig() plugins.append(plugin) self.logger.info("Activated %s" % pluginName) diff --git a/module/plugins/hooks/Mp3Convert.py b/module/plugins/hooks/Mp3Convert.py index d70bb93f6..6f32eecf4 100644 --- a/module/plugins/hooks/Mp3Convert.py +++ b/module/plugins/hooks/Mp3Convert.py @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. - @author: mkaay + @author: mkaaym spoob @interface-version: 0.1 """ @@ -30,8 +30,8 @@ class Mp3Convert(Hook): props['name'] = "Mp3Convert" props['version'] = "0.1" props['description'] = """converts files like videos to mp3""" - props['author_name'] = ("spoob") - props['author_mail'] = ("spoob@pyload.org") + props['author_name'] = ("spoob", "mkaay") + props['author_mail'] = ("spoob@pyload.org", "mkaay@mkaay.de") self.props = props self.readConfig() @@ -48,3 +48,4 @@ class Mp3Convert(Hook): def setup(self): self.configParser.set(self.props["name"], {"option": "removeRegularFile", "type": "bool", "name": "Remove Regular Files"}, False) + Hook.setup(self) |