summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:27:49 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:27:49 +0100
commitbf1a74a22dcc3a31a60367eab24e56e1fafe987a (patch)
treec04021f0b6bd9993be59f0ce072a456fc40bd4a5 /module/plugins/crypter
parent[XFSHoster] Code cosmetics (diff)
downloadpyload-bf1a74a22dcc3a31a60367eab24e56e1fafe987a.tar.xz
[MegaCoNzFolder] Increase loading timeout
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/MegaCoNzFolder.py6
1 files changed, 5 insertions, 1 deletions
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)