diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-23 00:50:23 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-23 00:50:23 +0200 |
commit | 7b67f68c1636014fe02286da71bdc6c13dc3eeee (patch) | |
tree | fce6a94fd3091c6f917acafcc53e71bd08097d5c /module/plugins/hoster/RyushareCom.py | |
parent | [XFSPAccount] Better HOSTER_URL (diff) | |
download | pyload-7b67f68c1636014fe02286da71bdc6c13dc3eeee.tar.xz |
Simplify captcha challenge calls
Diffstat (limited to 'module/plugins/hoster/RyushareCom.py')
-rw-r--r-- | module/plugins/hoster/RyushareCom.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py index cd77ac4a6..1acc1fd58 100644 --- a/module/plugins/hoster/RyushareCom.py +++ b/module/plugins/hoster/RyushareCom.py @@ -59,13 +59,8 @@ class RyushareCom(XFSPHoster): self.retry() for _ in xrange(5): - captcha = SolveMedia(self) - - captcha_key = captcha.detect_key() - if captcha_key is None: - self.error("SolveMedia key not found") - - challenge, response = captcha.challenge(captcha_key) + solvemedia = SolveMedia(self) + challenge, response = solvemedia.challenge() inputs['adcopy_challenge'] = challenge inputs['adcopy_response'] = response |