diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-18 06:09:04 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 22:37:54 +0100 |
commit | 58125cc90a78b67093b8213247ea647dd67dd9ca (patch) | |
tree | 69ae964377cbd45430bb78ade3930b820e867a55 /module/plugins/crypter | |
parent | [OCR] self.image -> self.img (diff) | |
download | pyload-58125cc90a78b67093b8213247ea647dd67dd9ca.tar.xz |
Spare code fixes
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/FilecryptCc.py | 5 | ||||
-rw-r--r-- | module/plugins/crypter/LinkCryptWs.py | 2 |
2 files changed, 5 insertions, 2 deletions
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): |