From 737541148e42bd017abab938b805869d31916eae Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Fri, 24 Aug 2012 16:51:20 +0200 Subject: udpdate zippyshare, linkdecrypter - closed #670 --- module/plugins/crypter/LinkdecrypterCom.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'module/plugins/crypter/LinkdecrypterCom.py') diff --git a/module/plugins/crypter/LinkdecrypterCom.py b/module/plugins/crypter/LinkdecrypterCom.py index b36ee2eaa..ff21916ef 100644 --- a/module/plugins/crypter/LinkdecrypterCom.py +++ b/module/plugins/crypter/LinkdecrypterCom.py @@ -22,13 +22,13 @@ from module.plugins.Crypter import Crypter class LinkdecrypterCom(Crypter): __name__ = "LinkdecrypterCom" __type__ = "crypter" - __version__ = "0.25" + __version__ = "0.26" __description__ = """linkdecrypter.com""" __author_name__ = ("zoidberg", "flowlee") TEXTAREA_PATTERN = r'' PASSWORD_PATTERN = r'' REDIR_PATTERN = r'(Click here if your browser does not redirect you).' def decrypt(self, pyfile): @@ -72,8 +72,16 @@ class LinkdecrypterCom(Crypter): found = re.search(self.CAPTCHA_PATTERN, self.html) if found: - self.logInfo("Captcha protected link") - captcha = self.decryptCaptcha(url='http://linkdecrypter.com/' + found.group(1)) + captcha_url = 'http://linkdecrypter.com/' + found.group(1) + result_type = "positional" if "getPos" in found.group(2) else "textual" + + found = re.search(r"

([^<]+)

", self.html) + msg = found.group(1) if found else "" + self.logInfo("Captcha protected link", result_type, msg) + + captcha = self.decryptCaptcha(captcha_url, result_type = result_type) + if result_type == "positional": + captcha = "%d|%d" % captcha self.html = self.load('http://linkdecrypter.com/', post={ "captcha": captcha }) retries -= 1 -- cgit v1.2.3