summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Gonzalo SR <gonzalo@gonzalosr.com> 2013-04-11 18:07:46 +0200
committerGravatar Gonzalo SR <gonzalo@gonzalosr.com> 2013-04-11 18:07:46 +0200
commit2f9dc56db6fc84e9915b7b8bc7892b880fe03059 (patch)
tree8f9b20d0d7bc39fbd11f3028cfcc34be279df2ef /module/plugins/hoster
parentFixed incorrect use of rstrip() (diff)
downloadpyload-2f9dc56db6fc84e9915b7b8bc7892b880fe03059.tar.xz
revert correct rsrtrip()
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/MegaNz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/MegaNz.py b/module/plugins/hoster/MegaNz.py
index 3b64c3ef5..e5be4eeb7 100644
--- a/module/plugins/hoster/MegaNz.py
+++ b/module/plugins/hoster/MegaNz.py
@@ -55,7 +55,7 @@ class MegaNz(Hoster):
self.fail(_("Decryption failed"))
# Data is padded, 0-bytes must be stripped
- return json.loads(attr.replace("MEGA", "").rsplit("\0")[0].strip())
+ return json.loads(attr.replace("MEGA", "").rstrip("\0").strip())
def decryptFile(self, key):
""" Decrypts the file at lastDownload` """