summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/MegaCoNz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
commitfcead1870013b6a970eca7878a66dbe783c80ea3 (patch)
tree9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/hoster/MegaCoNz.py
parentInit cosmetics (diff)
downloadpyload-fcead1870013b6a970eca7878a66dbe783c80ea3.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 b8f02278b..5fe1315be 100644
--- a/pyload/plugin/hoster/MegaCoNz.py
+++ b/pyload/plugin/hoster/MegaCoNz.py
@@ -44,15 +44,15 @@ from pyload.plugin.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("!")