From 404d6afa864d4a812691868ba126df913ebd6f31 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Wed, 27 Apr 2016 22:11:06 +0300 Subject: [MegaCoNz] Update --- module/plugins/crypter/MegaCoNzFolder.py | 6 +++--- module/plugins/hoster/MegaCoNz.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/crypter/MegaCoNzFolder.py b/module/plugins/crypter/MegaCoNzFolder.py index 2e14d704f..de95c6b73 100644 --- a/module/plugins/crypter/MegaCoNzFolder.py +++ b/module/plugins/crypter/MegaCoNzFolder.py @@ -43,7 +43,7 @@ from module.plugins.internal.misc import decode, json class MegaCoNzFolder(Crypter): __name__ = "MegaCoNzFolder" __type__ = "crypter" - __version__ = "0.14" + __version__ = "0.15" __status__ = "testing" __pattern__ = r'(https?://(?:www\.)?mega(\.co)?\.nz/|mega:|chrome:.+?)#F!(?P[\w^_]+)!(?P[\w,\-=]+)' @@ -70,12 +70,12 @@ class MegaCoNzFolder(Crypter): def a32_to_str(self, a): - return struct.pack(_(">%dI") % len(a), *a) #: big-endian, unsigned int + return struct.pack(">%dI" % len(a), *a) #: big-endian, unsigned int def str_to_a32(self, s): s += '\0' * (-len(s) % 4) # Add padding, we need a string with a length multiple of 4 - return struct.unpack(_(">%dI") % (len(s) / 4), s) #: big-endian, unsigned int + return struct.unpack(">%dI" % (len(s) / 4), s) #: big-endian, unsigned int def base64_to_a32(self, s): diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py index 057ddd438..4a5af83fa 100644 --- a/module/plugins/hoster/MegaCoNz.py +++ b/module/plugins/hoster/MegaCoNz.py @@ -46,7 +46,7 @@ from module.plugins.internal.misc import decode, encode, json class MegaCoNz(Hoster): __name__ = "MegaCoNz" __type__ = "hoster" - __version__ = "0.39" + __version__ = "0.40" __status__ = "testing" __pattern__ = r'(https?://(?:www\.)?mega(\.co)?\.nz/|mega:|chrome:.+?)#(?PN|)!(?P[\w^_]+)!(?P[\w\-,=]+)(?:###n=(?P[\w^_]+))?' @@ -73,12 +73,12 @@ class MegaCoNz(Hoster): def a32_to_str(self, a): - return struct.pack(_(">%dI") % len(a), *a) #: big-endian, unsigned int + return struct.pack(">%dI" % len(a), *a) #: big-endian, unsigned int def str_to_a32(self, s): s += '\0' * (-len(s) % 4) # Add padding, we need a string with a length multiple of 4 - return struct.unpack(_(">%dI") % (len(s) / 4), s) #: big-endian, unsigned int + return struct.unpack(">%dI" % (len(s) / 4), s) #: big-endian, unsigned int def base64_to_a32(self, s): -- cgit v1.2.3