diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-05-23 22:08:07 +0200 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-05-23 22:08:07 +0200 |
commit | aba6250e9987b569966eb59608766169252a6d64 (patch) | |
tree | 5149e933373d02e6722c13dae824ff2c8c71a060 | |
parent | [UpdateManager] fix #2472 (diff) | |
download | pyload-aba6250e9987b569966eb59608766169252a6d64.tar.xz |
fix #2474
-rw-r--r-- | module/plugins/hoster/HugefilesNet.py | 7 | ||||
-rw-r--r-- | module/plugins/internal/XFSHoster.py | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/module/plugins/hoster/HugefilesNet.py b/module/plugins/hoster/HugefilesNet.py index 85f8b45f2..ef1987ee8 100644 --- a/module/plugins/hoster/HugefilesNet.py +++ b/module/plugins/hoster/HugefilesNet.py @@ -20,11 +20,10 @@ class HugefilesNet(XFSHoster): __description__ = """Hugefiles.net hoster plugin""" __license__ = "GPLv3" - __authors__ = [("stickell", "l.stickell@yahoo.it")] + __authors__ = [("stickell", "l.stickell@yahoo.it" ), + ("GammaC0de", "nitzo2001[AT]yahoo[DOT]com")] PLUGIN_DOMAIN = "hugefiles.net" - SIZE_PATTERN = r'File Size:</span>\s*<span.*?>(?P<S>.+?)</span></div>' - - FORM_INPUTS_MAP = {'ctype': re.compile(r'\d+')} + SIZE_PATTERN = r'<font style="color:#2574b6;"> \((?P<S>[\d.,]+) (?P<U>[\w^_]+)\)' diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py index d61b70e1a..96d4ab20b 100644 --- a/module/plugins/internal/XFSHoster.py +++ b/module/plugins/internal/XFSHoster.py @@ -207,6 +207,13 @@ class XFSHoster(SimpleHoster): if wait_time < self.config.get('max_wait', 10) * 60: self.handle_captcha(inputs) self.wait() + + else: + self.handle_captcha(inputs) + + if 'referer' in inputs and len(inputs['referer']) == 0: + inputs['referer'] = self.pyfile.url + else: inputs['referer'] = self.pyfile.url |