diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-19 14:52:42 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-19 14:52:42 +0200 |
commit | 2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch) | |
tree | c33c610c953a7833adfe8e357417e73b1d5231d4 /module/plugins/hoster/NarodRu.py | |
parent | parseError -> error now calls Fail instead Exception (diff) | |
download | pyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz |
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/NarodRu.py')
-rw-r--r-- | module/plugins/hoster/NarodRu.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/NarodRu.py b/module/plugins/hoster/NarodRu.py index c1e1e308a..f70ff9622 100644 --- a/module/plugins/hoster/NarodRu.py +++ b/module/plugins/hoster/NarodRu.py @@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class NarodRu(SimpleHoster): __name__ = "NarodRu" __type__ = "hoster" - __version__ = "0.1" + __version__ = "0.11" __pattern__ = r'http://(?:www\.)?narod(\.yandex)?\.ru/(disk|start/\d+\.\w+-narod\.yandex\.ru)/(?P<ID>\d+)/.+' @@ -36,7 +36,7 @@ class NarodRu(SimpleHoster): self.html = self.load('http://narod.ru/disk/getcapchaxml/?rnd=%d' % int(random() * 777)) m = re.search(self.CAPTCHA_PATTERN, self.html) if m is None: - self.parseError('Captcha') + self.error('Captcha') post_data = {"action": "sendcapcha"} captcha_url, post_data['key'] = m.groups() post_data['rep'] = self.decryptCaptcha(captcha_url) @@ -50,7 +50,7 @@ class NarodRu(SimpleHoster): elif u'<b class="error-msg"><strong>Ошиблись?</strong>' in self.html: self.invalidCaptcha() else: - self.parseError('Download link') + self.error('Download link') else: self.fail("No valid captcha code entered") |