From bf1a74a22dcc3a31a60367eab24e56e1fafe987a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 27 Dec 2014 21:27:49 +0100 Subject: [MegaCoNzFolder] Increase loading timeout --- module/plugins/crypter/MegaCoNzFolder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/plugins/crypter') diff --git a/module/plugins/crypter/MegaCoNzFolder.py b/module/plugins/crypter/MegaCoNzFolder.py index 7c6a5cdb6..caa2ab563 100644 --- a/module/plugins/crypter/MegaCoNzFolder.py +++ b/module/plugins/crypter/MegaCoNzFolder.py @@ -6,7 +6,7 @@ from module.plugins.internal.Crypter import Crypter class MegaCoNzFolder(Crypter): __name__ = "MegaCoNzFolder" __type__ = "crypter" - __version__ = "0.01" + __version__ = "0.02" __pattern__ = r'https?://(?:www\.)?mega\.co\.nz/#F![\w+^_]![\w,\\-]+' __config__ = [("use_subfolder", "bool", "Save package to subfolder", True), @@ -17,6 +17,10 @@ class MegaCoNzFolder(Crypter): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + def setup(self): + self.req.setOption("timeout", 300) + + def decrypt(self, pyfile): self.html = self.load("http://rapidgen.org/linkfinder", post={'linklisturl': self.pyfile.url}) self.urls = re.findall(r'(https://mega.co.nz/#N!.+?)<', self.html) -- cgit v1.2.3