summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegaCoNz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-17 18:29:50 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:42:29 +0200
commit164512b6a74c94a731fcee7435dce1ccfa2f71e7 (patch)
tree3f61d3b83f641070145b478f54522c4fe2e63691 /module/plugins/hoster/MegaCoNz.py
parentSpare fixes (diff)
downloadpyload-164512b6a74c94a731fcee7435dce1ccfa2f71e7.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/MegaCoNz.py')
-rw-r--r--module/plugins/hoster/MegaCoNz.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py
index 08eab2fb1..20b879aba 100644
--- a/module/plugins/hoster/MegaCoNz.py
+++ b/module/plugins/hoster/MegaCoNz.py
@@ -68,7 +68,9 @@ class MegaCoNz(Hoster):
def getCipherKey(self, key):
- """ Construct the cipher key from the given data """
+ """
+ Construct the cipher key from the given data
+ """
a = array.array("I", self.b64_decode(key))
k = array.array("I", (a[0] ^ a[4], a[1] ^ a[5], a[2] ^ a[6], a[3] ^ a[7]))
@@ -79,8 +81,9 @@ class MegaCoNz(Hoster):
def api_response(self, **kwargs):
- """ Dispatch a call to the api, see https://mega.co.nz/#developers """
-
+ """
+ Dispatch a call to the api, see https://mega.co.nz/#developers
+ """
# generate a session id, no idea where to obtain elsewhere
uid = random.randint(10 << 9, 10 ** 10)
@@ -103,8 +106,9 @@ class MegaCoNz(Hoster):
def decryptFile(self, key):
- """ Decrypts the file at lastDownload` """
-
+ """
+ Decrypts the file at lastDownload`
+ """
# upper 64 bit of counter start
n = self.b64_decode(key)[16:24]