diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-02-25 01:42:26 +0100 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-02-25 01:42:26 +0100 |
commit | 6c47e44636a75e9fbb606bb57a46e9cab4a1c8a3 (patch) | |
tree | 3f8e512e903d709d42df9109579772f38c6a8baf /module | |
parent | [GoogledriveCom] Update (diff) | |
download | pyload-6c47e44636a75e9fbb606bb57a46e9cab4a1c8a3.tar.xz |
[MediafireCom] Update
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/MediafireCom.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index f21329a4b..ed4e7c6aa 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster class MediafireCom(SimpleHoster): __name__ = "MediafireCom" __type__ = "hoster" - __version__ = "0.94" + __version__ = "0.95" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?mediafire\.com/(file/|view/\??|download(\.php\?|/)|\?)(?P<ID>\w+)' @@ -56,10 +56,18 @@ class MediafireCom(SimpleHoster): captcha_key = recaptcha.detect_key() if captcha_key: - self.captcha = recaptcha - response, challenge = recaptcha.challenge(captcha_key) - self.data = self.load(self.pyfile.url, - post={'g-recaptcha-response': response}) + url, inputs = self.parse_html_form('name="form_captcha"') + self.log_debug(("form_captcha url:%s inputs:%s") % (url, inputs)) + + if url: + self.captcha = recaptcha + response, challenge = recaptcha.challenge(captcha_key) + + inputs['g-recaptcha-response'] = response + self.data = self.load(self.fixurl(url), post=inputs) + + else: + self.fail("ReCaptcha form not found") def handle_free(self, pyfile): |