From 608af3e22f15a36ba7a3efab1886f5827fd6741e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 16 Dec 2014 23:00:32 +0100 Subject: [Keep2shareCc] Fix captcha_url --- module/plugins/hoster/Keep2shareCc.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster/Keep2shareCc.py') diff --git a/module/plugins/hoster/Keep2shareCc.py b/module/plugins/hoster/Keep2shareCc.py index d98fa3c09..0d06a74c7 100644 --- a/module/plugins/hoster/Keep2shareCc.py +++ b/module/plugins/hoster/Keep2shareCc.py @@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import _isDirectLink, SimpleHoster, cr class Keep2shareCc(SimpleHoster): __name__ = "Keep2shareCc" __type__ = "hoster" - __version__ = "0.17" + __version__ = "0.18" __pattern__ = r'https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P\w+)' @@ -99,7 +99,7 @@ class Keep2shareCc(SimpleHoster): m = re.search(self.CAPTCHA_PATTERN, self.html) if m: - captcha_url = urljoin(self.base, m.group(1)) + captcha_url = urljoin("http://k2s.cc/", m.group(1)) post_data['CaptchaForm[code]'] = self.decryptCaptcha(captcha_url) else: challenge, response = recaptcha.challenge() @@ -121,12 +121,10 @@ class Keep2shareCc(SimpleHoster): if not link: return - p = urlparse(self.pyfile.url) - base = "%s://%s" % (p.scheme, p.netloc) link = _isDirectLink(self, link, self.premium) if link: - self.download(urljoin(base, link), disposition=True) + self.download(urljoin("http://k2s.cc/", link), disposition=True) getInfo = create_getInfo(Keep2shareCc) -- cgit v1.2.3