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/DateiTo.py | |
parent | [XFSPAccount] Better HOSTER_URL (diff) | |
download | pyload-7b67f68c1636014fe02286da71bdc6c13dc3eeee.tar.xz |
Simplify captcha challenge calls
Diffstat (limited to 'module/plugins/hoster/DateiTo.py')
-rw-r--r-- | module/plugins/hoster/DateiTo.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/module/plugins/hoster/DateiTo.py b/module/plugins/hoster/DateiTo.py index 93840b108..07033a203 100644 --- a/module/plugins/hoster/DateiTo.py +++ b/module/plugins/hoster/DateiTo.py @@ -30,7 +30,6 @@ class DateiTo(SimpleHoster): def handleFree(self): url = 'http://datei.to/ajax/download.php' data = {'P': 'I', 'ID': self.file_info['ID']} - recaptcha = ReCaptcha(self) for _ in xrange(10): @@ -52,12 +51,7 @@ class DateiTo(SimpleHoster): data = dict(x.split('=') for x in m.group(2).split('&')) if url.endswith('recaptcha.php'): - captcha_key = recaptcha.detect_key() - if captcha_key is None: - self.error("ReCaptcha key not found") - - data['recaptcha_challenge_field'], data['recaptcha_response_field'] = recaptcha.challenge(captcha_key) - + data['recaptcha_challenge_field'], data['recaptcha_response_field'] = recaptcha.challenge() else: self.fail('Too bad...') |