diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-20 14:24:13 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-20 14:24:13 +0100 |
commit | 6325eda4e8c142edd11c747f7a9d4a3fa975c494 (patch) | |
tree | 589819bb5e5ce441ea8f1109c8357c086816ed69 /module/plugins/hoster/MegaCoNz.py | |
parent | [AlldebridCom] Syntax fixup (diff) | |
download | pyload-6325eda4e8c142edd11c747f7a9d4a3fa975c494.tar.xz |
Fix password retrieving in some plugins
Diffstat (limited to 'module/plugins/hoster/MegaCoNz.py')
-rw-r--r-- | module/plugins/hoster/MegaCoNz.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py index 385295d42..fc6724dc7 100644 --- a/module/plugins/hoster/MegaCoNz.py +++ b/module/plugins/hoster/MegaCoNz.py @@ -46,9 +46,9 @@ from module.plugins.Hoster import Hoster class MegaCoNz(Hoster): __name__ = "MegaCoNz" __type__ = "hoster" - __version__ = "0.16" + __version__ = "0.17" - __pattern__ = r'https?://(\w+\.)?mega\.co\.nz/#!([\w!-]+)' + __pattern__ = r'https?://(?:www\.)?mega\.co\.nz/#!(?P<ID>[\w!-]+)' __description__ = """Mega.co.nz hoster plugin""" __license__ = "GPLv3" @@ -133,11 +133,11 @@ 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('ID') if "!" in node: - node, key = node.split("!") + node, key = node.split("!", 1) - self.logDebug("File id: %s | Key: %s" % (node, key)) + self.logDebug("ID: %s | Key: %s" % (node, key)) if not key: self.fail(_("No file key provided in the URL")) |