summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NarodRu.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/NarodRu.py')
-rw-r--r--module/plugins/hoster/NarodRu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/NarodRu.py b/module/plugins/hoster/NarodRu.py
index f88b5e2c7..f54fbf71e 100644
--- a/module/plugins/hoster/NarodRu.py
+++ b/module/plugins/hoster/NarodRu.py
@@ -43,18 +43,18 @@ class NarodRu(SimpleHoster):
post_data = {'action': "sendcapcha"}
captcha_url, post_data['key'] = m.groups()
- post_data['rep'] = self.decrypt_captcha(captcha_url)
+ post_data['rep'] = self.captcha.decrypt_image(captcha_url)
self.html = self.load(pyfile.url, post=post_data)
m = re.search(self.LINK_FREE_PATTERN, self.html)
if m:
self.link = urlparse.urljoin("http://narod.ru", m.group(1))
- self.correct_captcha()
+ self.captcha.correct()
break
elif u'<b class="error-msg"><strong>Ошиблись?</strong>' in self.html:
- self.invalid_captcha()
+ self.captcha.invalid()
else:
self.error(_("Download link"))