diff options
Diffstat (limited to 'module/plugins/crypter/FilecryptCc.py')
| -rw-r--r-- | module/plugins/crypter/FilecryptCc.py | 17 | 
1 files changed, 9 insertions, 8 deletions
| diff --git a/module/plugins/crypter/FilecryptCc.py b/module/plugins/crypter/FilecryptCc.py index af31dc743..096fd414d 100644 --- a/module/plugins/crypter/FilecryptCc.py +++ b/module/plugins/crypter/FilecryptCc.py @@ -1,5 +1,5 @@  # -*- coding: utf-8 -*- - +# http://filecrypt.cc/Container/64E039F859.html  import base64  import binascii  import re @@ -14,7 +14,7 @@ from module.plugins.internal.CaptchaService import ReCaptcha  class FilecryptCc(Crypter):      __name__    = "FilecryptCc"      __type__    = "crypter" -    __version__ = "0.09" +    __version__ = "0.11"      __pattern__ = r'https?://(?:www\.)?filecrypt\.cc/Container/\w+' @@ -108,20 +108,21 @@ class FilecryptCc(Crypter):                                             post={'button.x': captcha_code[0], 'button.y': captcha_code[1]},                                             cookies=True,                                             decode=True) +          else:              recaptcha   = ReCaptcha(self)              captcha_key = recaptcha.detect_key()              if captcha_key: -                self.siteWithLinks = self.load(self.pyfile.url, -                                               post={'g-recaptcha-response': recaptcha.challenge(captcha_key, True)}, -                                               cookies=True, -                                               decode=True) +                response, challenge = recaptcha.challenge(captcha_key) +                self.siteWithLinks  = self.load(self.pyfile.url, +                                                post={'g-recaptcha-response': response}, +                                                decode=True)              else: -                self.logDebug("No captcha found") +                self.logInfo(_("No captcha found"))                  self.siteWithLinks = self.html -        if "recaptcha_image" in self.siteWithLinks: +        if "recaptcha_image" in self.siteWithLinks or "data-sitekey" in self.siteWithLinks:              self.invalidCaptcha()              self.retry() | 
