diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-03 00:28:52 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-03 00:28:52 +0100 |
commit | e60f9d3480b3753f58e82d55178d180c7c933f6a (patch) | |
tree | 1537f8111577be499e58b7a701a2b15da82db5af /module/plugins/hoster/ShareonlineBiz.py | |
parent | [SkipRev] Syntax fixes (diff) | |
download | pyload-e60f9d3480b3753f58e82d55178d180c7c933f6a.tar.xz |
[ShareonlineBiz] Fix recaptcha
Diffstat (limited to 'module/plugins/hoster/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index f821cd244..d52328fd6 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -28,6 +28,8 @@ class ShareonlineBiz(SimpleHoster): URL_REPLACEMENTS = [(__pattern__ + ".*", "http://www.share-online.biz/dl/\g<ID>")] + RECAPTCHA_KEY = "6LdatrsSAAAAAHZrB70txiV5p-8Iv8BtVxlTtjKX" + ERROR_INFO_PATTERN = r'<p class="b">Information:</p>\s*<div>\s*<strong>(.*?)</strong>' @@ -65,7 +67,7 @@ class ShareonlineBiz(SimpleHoster): recaptcha = ReCaptcha(self) for _i in xrange(5): - challenge, response = recaptcha.challenge() + challenge, response = recaptcha.challenge(self.RECAPTCHA_KEY) m = re.search(r'var wait=(\d+);', self.html) self.setWait(int(m.group(1)) if m else 30) |