summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/Keep2shareCC.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/Keep2shareCC.py
parentparseError -> error now calls Fail instead Exception (diff)
downloadpyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/Keep2shareCC.py')
-rw-r--r--module/plugins/hoster/Keep2shareCC.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/Keep2shareCC.py b/module/plugins/hoster/Keep2shareCC.py
index a9d4145d1..1da65f3c8 100644
--- a/module/plugins/hoster/Keep2shareCC.py
+++ b/module/plugins/hoster/Keep2shareCC.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class Keep2shareCC(SimpleHoster):
__name__ = "Keep2shareCC"
__type__ = "hoster"
- __version__ = "0.10"
+ __version__ = "0.11"
__pattern__ = r'https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P<ID>\w+)'
@@ -64,7 +64,7 @@ class Keep2shareCC(SimpleHoster):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect direct link")
+ self.error("Unable to detect direct link")
self.startDownload(m.group(1))
@@ -73,7 +73,7 @@ class Keep2shareCC(SimpleHoster):
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
for _ in xrange(5):
challenge, response = recaptcha.challenge(captcha_key)