diff options
author | 2014-12-10 19:07:53 +0100 | |
---|---|---|
committer | 2014-12-10 19:07:53 +0100 | |
commit | 2439bc22671dde697817291b721bfddb792a93b4 (patch) | |
tree | dad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/Addon.py | |
parent | Revert plugin directory structure (diff) | |
download | pyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz |
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/Addon.py')
-rw-r--r-- | pyload/plugins/Addon.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugins/Addon.py b/pyload/plugins/Addon.py index ed5a72af8..ebfb121f9 100644 --- a/pyload/plugins/Addon.py +++ b/pyload/plugins/Addon.py @@ -24,15 +24,15 @@ class Addon(Base): """ Base class for addon plugins. """ - __name__ = "Addon" - __type__ = "addon" - __version__ = "0.03" + __name = "Addon" + __type = "addon" + __version = "0.03" - __config__ = [] #: [("name", "type", "desc", "default")] + __config = [] #: [("name", "type", "desc", "default")] - __description__ = """Base addon/hook plugin""" - __license__ = "GPLv3" - __authors__ = [("mkaay", "mkaay@mkaay.de"), + __description = """Base addon/hook plugin""" + __license = "GPLv3" + __authors = [("mkaay", "mkaay@mkaay.de"), ("RaNaN", "RaNaN@pyload.org")] @@ -101,7 +101,7 @@ class Addon(Base): def __repr__(self): - return "<Addon %s>" % self.__name__ + return "<Addon %s>" % self.__name def setup(self): @@ -116,7 +116,7 @@ class Addon(Base): def isActivated(self): """ checks if addon is activated""" - return self.core.config.getPlugin(self.__name__, "activated") + return self.core.config.getPlugin(self.__name, "activated") #event methods - overwrite these if needed |