From c3b3f3ea5c813edbe3e6941c535c78ad494244ee Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 11 Oct 2015 01:04:09 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1998 Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001 --- module/plugins/hoster/MegaCoNz.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/MegaCoNz.py') diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py index 2179dac70..36ad929f4 100644 --- a/module/plugins/hoster/MegaCoNz.py +++ b/module/plugins/hoster/MegaCoNz.py @@ -46,12 +46,13 @@ from module.utils import decode, fs_decode, fs_encode class MegaCoNz(Hoster): - __name = "MegaCoNz" + __name__ = "MegaCoNz" __type__ = "hoster" __version__ = "0.31" __status__ = "testing" __pattern__ = r'(https?://(?:www\.)?mega(\.co)?\.nz/|mega:|chrome:.+?)#(?PN|)!(?P[\w^_]+)!(?P[\w\-,]+)' + __config__ = [("activated", "bool", "Activated", True)] __description__ = """Mega.co.nz hoster plugin""" __license__ = "GPLv3" @@ -188,7 +189,7 @@ class MegaCoNz(Hoster): def process(self, pyfile): - pattern = re.match(self.__pattern, pyfile.url).groupdict() + pattern = re.match(self.__pattern__, pyfile.url).groupdict() id = pattern['ID'] key = pattern['KEY'] public = pattern['TYPE'] == "" -- cgit v1.2.3