diff options
Diffstat (limited to 'module/plugins/hoster/MegaCoNz.py')
-rw-r--r-- | module/plugins/hoster/MegaCoNz.py | 5 |
1 files changed, 3 insertions, 2 deletions
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:.+?)#(?P<TYPE>N|)!(?P<ID>[\w^_]+)!(?P<KEY>[\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'] == "" |