From a591f5617de1280441012ddf846ccc1088963f47 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 1 Nov 2014 00:05:44 +0100 Subject: [MegaNz] Fix SSL protocol error (thx cocoto) --- module/plugins/hoster/MegaNz.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/MegaNz.py') 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) -- cgit v1.2.3