summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/CrockoCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
commit2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch)
treec33c610c953a7833adfe8e357417e73b1d5231d4 /module/plugins/hoster/CrockoCom.py
parentparseError -> error now calls Fail instead Exception (diff)
downloadpyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/CrockoCom.py')
-rw-r--r--module/plugins/hoster/CrockoCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/CrockoCom.py b/module/plugins/hoster/CrockoCom.py
index b62e88278..f685d7452 100644
--- a/module/plugins/hoster/CrockoCom.py
+++ b/module/plugins/hoster/CrockoCom.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class CrockoCom(SimpleHoster):
__name__ = "CrockoCom"
__type__ = "hoster"
- __version__ = "0.16"
+ __version__ = "0.17"
__pattern__ = r'http://(?:www\.)?(crocko|easy-share)\.com/\w+'
@@ -46,11 +46,11 @@ class CrockoCom(SimpleHoster):
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha captcha key not found")
+ self.error("ReCaptcha captcha key not found")
m = re.search(self.FORM_PATTERN, self.html, re.DOTALL)
if m is None:
- self.parseError('ACTION')
+ self.error('ACTION')
action, form = m.groups()
inputs = dict(re.findall(self.FORM_INPUT_PATTERN, form))