summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/MegaCoNz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 22:38:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 22:38:45 +0100
commit270c1ee85edcd1e9e10511833b422d93dfca192a (patch)
treeeb846081ba3ec09721879ee237016b26d19c3c2f /pyload/plugin/hoster/MegaCoNz.py
parentFix plugins to work on 0.4.10 (diff)
downloadpyload-270c1ee85edcd1e9e10511833b422d93dfca192a.tar.xz
Diffstat (limited to 'pyload/plugin/hoster/MegaCoNz.py')
-rw-r--r--pyload/plugin/hoster/MegaCoNz.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pyload/plugin/hoster/MegaCoNz.py b/pyload/plugin/hoster/MegaCoNz.py
index 9648e8316..7c7c3624f 100644
--- a/pyload/plugin/hoster/MegaCoNz.py
+++ b/pyload/plugin/hoster/MegaCoNz.py
@@ -46,15 +46,15 @@ from pyload.utils import decode, fs_decode, fs_encode
class MegaCoNz(Hoster):
- __name__ = "MegaCoNz"
- __type__ = "hoster"
- __version__ = "0.26"
+ __name = "MegaCoNz"
+ __type = "hoster"
+ __version = "0.26"
- __pattern__ = r'(?:https?://(?:www\.)?mega\.co\.nz/|mega:|chrome:.+?)#(?P<TYPE>N|)!(?P<ID>[\w^_]+)!(?P<KEY>[\w,\\-]+)'
+ __pattern = r'(?:https?://(?:www\.)?mega\.co\.nz/|mega:|chrome:.+?)#(?P<TYPE>N|)!(?P<ID>[\w^_]+)!(?P<KEY>[\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"),
("Walter Purcaro", "vuolter@gmail.com")]
@@ -183,7 +183,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'] == ''