summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegaNz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-01 00:05:44 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-01 00:05:44 +0100
commita591f5617de1280441012ddf846ccc1088963f47 (patch)
treee2d41512ae6f852c416389a6383fc1325c0c9279 /module/plugins/hoster/MegaNz.py
parent[XFileSharingPro] Massive cleanup for hook plugin (diff)
downloadpyload-a591f5617de1280441012ddf846ccc1088963f47.tar.xz
[MegaNz] Fix SSL protocol error (thx cocoto)
Diffstat (limited to 'module/plugins/hoster/MegaNz.py')
-rw-r--r--module/plugins/hoster/MegaNz.py10
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)