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/hoster/MegaCoNz.py | |
parent | Revert plugin directory structure (diff) | |
download | pyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz |
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hoster/MegaCoNz.py')
-rw-r--r-- | pyload/plugins/hoster/MegaCoNz.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pyload/plugins/hoster/MegaCoNz.py b/pyload/plugins/hoster/MegaCoNz.py index f17760abb..d3af1b72e 100644 --- a/pyload/plugins/hoster/MegaCoNz.py +++ b/pyload/plugins/hoster/MegaCoNz.py @@ -44,15 +44,15 @@ from pyload.plugins.Hoster import Hoster class MegaCoNz(Hoster): - __name__ = "MegaCoNz" - __type__ = "hoster" - __version__ = "0.16" + __name = "MegaCoNz" + __type = "hoster" + __version = "0.16" - __pattern__ = r'https?://(\w+\.)?mega\.co\.nz/#!([\w!-]+)' + __pattern = r'https?://(\w+\.)?mega\.co\.nz/#!([\w!-]+)' - __description__ = """Mega.co.nz hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("RaNaN", "ranan@pyload.org")] + __description = """Mega.co.nz hoster plugin""" + __license = "GPLv3" + __authors = [("RaNaN", "ranan@pyload.org")] API_URL = "https://g.api.mega.co.nz/cs" FILE_SUFFIX = ".crypted" @@ -133,7 +133,7 @@ class MegaCoNz(Hoster): key = None # match is guaranteed because plugin was chosen to handle url - node = re.match(self.__pattern__, pyfile.url).group(2) + node = re.match(self.__pattern, pyfile.url).group(2) if "!" in node: node, key = node.split("!") |