From 58125cc90a78b67093b8213247ea647dd67dd9ca Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 18 Dec 2015 06:09:04 +0100 Subject: Spare code fixes --- module/plugins/crypter/FilecryptCc.py | 5 ++++- module/plugins/crypter/LinkCryptWs.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/crypter') diff --git a/module/plugins/crypter/FilecryptCc.py b/module/plugins/crypter/FilecryptCc.py index 4a9328593..c2fca1ab4 100644 --- a/module/plugins/crypter/FilecryptCc.py +++ b/module/plugins/crypter/FilecryptCc.py @@ -123,6 +123,7 @@ class FilecryptCc(Crypter): captcha_key = solvemedia.detect_key() if captcha_key: + self.captcha = solvemedia response, challenge = solvemedia.challenge(captcha_key) self.site_with_links = self.load(self.pyfile.url, post={'adcopy_response' : response, @@ -134,9 +135,11 @@ class FilecryptCc(Crypter): else: recaptcha = ReCaptcha(self) - captcha_key = recaptcha.detect_key() + captcha_key = self.captcha.detect_key() if captcha_key: + self.captcha = recaptcha + try: response, challenge = recaptcha.challenge(captcha_key) diff --git a/module/plugins/crypter/LinkCryptWs.py b/module/plugins/crypter/LinkCryptWs.py index fb080eeb3..65b671c11 100644 --- a/module/plugins/crypter/LinkCryptWs.py +++ b/module/plugins/crypter/LinkCryptWs.py @@ -7,7 +7,7 @@ import Crypto.Cipher import pycurl from module.plugins.internal.Crypter import Crypter -from module.plugins.internal.misc import html_unescape, set_cookie(cj +from module.plugins.internal.misc import html_unescape, set_cookie class LinkCryptWs(Crypter): -- cgit v1.2.3