summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DateiTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/DateiTo.py')
-rw-r--r--module/plugins/hoster/DateiTo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/DateiTo.py b/module/plugins/hoster/DateiTo.py
index 3a584f8c7..a7ffb6548 100644
--- a/module/plugins/hoster/DateiTo.py
+++ b/module/plugins/hoster/DateiTo.py
@@ -37,7 +37,7 @@ class DateiTo(SimpleHoster):
def handle_free(self, pyfile):
url = 'http://datei.to/ajax/download.php'
data = {'P': 'I', 'ID': self.info['pattern']['ID']}
- recaptcha = ReCaptcha(pyfile)
+ self.captcha = ReCaptcha(pyfile)
for _i in xrange(3):
self.log_debug("URL", url, "POST", data)
@@ -58,8 +58,8 @@ class DateiTo(SimpleHoster):
url = 'http://datei.to/' + m.group(1)
data = dict(x.split('=') for x in m.group(2).split('&'))
- if url.endswith('recaptcha.php'):
- data['recaptcha_response_field'], data['recaptcha_challenge_field'] = recaptcha.challenge()
+ if url.endswith('self.captcha.php'):
+ data['recaptcha_response_field'], data['recaptcha_challenge_field'] = self.captcha.challenge()
else:
return