diff options
-rw-r--r-- | module/plugins/hoster/MegaNz.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegaNz.py b/module/plugins/hoster/MegaNz.py index bbf18eed7..06c2afc84 100644 --- a/module/plugins/hoster/MegaNz.py +++ b/module/plugins/hoster/MegaNz.py @@ -3,12 +3,14 @@ import random import re -from Crypto.Cipher import AES -from Crypto.Util import Counter from array import array from base64 import standard_b64decode from os import remove +from Crypto.Cipher import AES +from Crypto.Util import Counter +from pycurl import SSL_CIPHER_LIST + from module.common.json_layer import json_loads, json_dumps from module.plugins.Hoster import Hoster @@ -16,7 +18,7 @@ from module.plugins.Hoster import Hoster class MegaNz(Hoster): __name__ = "MegaNz" __type__ = "hoster" - __version__ = "0.15" + __version__ = "0.16" __pattern__ = r'https?://(\w+\.)?mega\.co\.nz/#!([\w!-]+)' @@ -129,6 +131,8 @@ class MegaNz(Hoster): pyfile.name = attr['n'] + self.FILE_SUFFIX + self.req.http.c.setopt(SSL_CIPHER_LIST, "RC4-MD5:DEFAULT") + self.download(dl['g']) self.decryptFile(key) |