diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-03 09:06:05 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-03 09:09:53 +0200 |
commit | 23ae563604dca1dae262fbc598154b99b2f1eae8 (patch) | |
tree | 1540b988d133c052bf0d6e7f26f02324db6f944a /module/plugins/hoster/OboomCom.py | |
parent | [MovReelCom] Fixed LINK_PATTERN (diff) | |
download | pyload-23ae563604dca1dae262fbc598154b99b2f1eae8.tar.xz |
Update plugins after CaptchaService and XFileSharingPro changes
Diffstat (limited to 'module/plugins/hoster/OboomCom.py')
-rw-r--r-- | module/plugins/hoster/OboomCom.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/hoster/OboomCom.py b/module/plugins/hoster/OboomCom.py index f30c64184..637735fd9 100644 --- a/module/plugins/hoster/OboomCom.py +++ b/module/plugins/hoster/OboomCom.py @@ -21,8 +21,6 @@ class OboomCom(Hoster): __author_name__ = "stanley" __author_mail__ = "stanley.foerster@gmail.com" - RECAPTCHA_KEY = "6LdqpO0SAAAAAJGHXo63HyalP7H4qlRs_vff0kJX" - def loadUrl(self, url, get=None): if get is None: @@ -49,8 +47,13 @@ class OboomCom(Hoster): def solveCaptcha(self): recaptcha = ReCaptcha(self) + + captcha_key = recaptcha.detect_key() + if captcha_key is None: + self.parseError("ReCaptcha key not found") + for _ in xrange(5): - challenge, response = recaptcha.challenge(self.RECAPTCHA_KEY) + challenge, response = recaptcha.challenge(captcha_key) apiUrl = "https://www.oboom.com/1.0/download/ticket" params = {"recaptcha_challenge_field": challenge, "recaptcha_response_field": response, |