diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-14 16:27:02 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-14 16:27:02 +0100 |
commit | ccc63b5bccf66c8ff50036643d5e890ab354c54c (patch) | |
tree | 8413de3e2bd3328a5576795c3ca3bd76ad4500ae /module | |
parent | Merge pull request #3 from irrenhaus/stable (diff) | |
parent | Support for incorrectly padded Mega.co.nz keys (diff) | |
download | pyload-ccc63b5bccf66c8ff50036643d5e890ab354c54c.tar.xz |
Merge pull request #4 from gonzalosr/patch-1
Support for incorrectly padded Mega.co.nz keys
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/MegaNz.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/hoster/MegaNz.py b/module/plugins/hoster/MegaNz.py index 1c48906ca..6644d372c 100644 --- a/module/plugins/hoster/MegaNz.py +++ b/module/plugins/hoster/MegaNz.py @@ -28,7 +28,8 @@ class MegaNz(Hoster): FILE_SUFFIX = ".crypted" def b64_decode(self, data): - return standard_b64decode(data.replace("-", "+").replace("_", "/")+ "=") + data = data.replace("-", "+").replace("_", "/") + return standard_b64decode(data + '=' * (-len(data) % 4)) def getCipherKey(self, key): """ Construct the cipher key from the given data """ |