summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegacrypterCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-17 18:59:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:42:40 +0200
commit20b6a2ec022202b0efb6cb69415239fb8f4d1445 (patch)
treefdbb3ad42854144b1cace0221145a472b36ef84d /module/plugins/hoster/MegacrypterCom.py
parentSpare code cosmetics (diff)
downloadpyload-20b6a2ec022202b0efb6cb69415239fb8f4d1445.tar.xz
Spare code cosmetics (2)
Diffstat (limited to 'module/plugins/hoster/MegacrypterCom.py')
-rw-r--r--module/plugins/hoster/MegacrypterCom.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/MegacrypterCom.py b/module/plugins/hoster/MegacrypterCom.py
index aea564ded..27c3c7253 100644
--- a/module/plugins/hoster/MegacrypterCom.py
+++ b/module/plugins/hoster/MegacrypterCom.py
@@ -34,18 +34,18 @@ class MegacrypterCom(MegaCoNz):
def process(self, pyfile):
- # match is guaranteed because plugin was chosen to handle url
+ #: match is guaranteed because plugin was chosen to handle url
node = re.match(self.__pattern__, pyfile.url).group(0)
- # get Mega.co.nz link info
+ #: get Mega.co.nz link info
info = self.api_response(link=node, m="info")
- # get crypted file URL
+ #: get crypted file URL
dl = self.api_response(link=node, m="dl")
- # TODO: map error codes, implement password protection
- # if info['pass'] is True:
- # crypted_file_key, md5_file_key = info['key'].split("#")
+ #@TODO: map error codes, implement password protection
+ # if info['pass'] is True:
+ # crypted_file_key, md5_file_key = info['key'].split("#")
key = self.b64_decode(info['key'])
@@ -55,5 +55,5 @@ class MegacrypterCom(MegaCoNz):
self.decryptFile(key)
- # Everything is finished and final name can be set
+ #: Everything is finished and final name can be set
pyfile.name = info['name']