diff options
-rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 6 | ||||
-rw-r--r-- | module/plugins/internal/CaptchaService.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index c91228850..f1b73bf5f 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -62,11 +62,11 @@ class ArchiveQueue(object): def get(self): - return self.plugin.getStorage("ExtractArchive:%s" % storage, []) + return self.plugin.getStorage("ExtractArchive:%s" % self.storage, []) def set(self, value): - return self.plugin.setStorage("ExtractArchive:%s" % storage, value) + return self.plugin.setStorage("ExtractArchive:%s" % self.storage, value) def clean(self): @@ -91,7 +91,7 @@ class ArchiveQueue(object): class ExtractArchive(Hook): __name__ = "ExtractArchive" __type__ = "hook" - __version__ = "1.13" + __version__ = "1.14" __config__ = [("activated" , "bool" , "Activated" , True ), ("fullpath" , "bool" , "Extract full path" , True ), diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py index c7dab2a0a..45672ce70 100644 --- a/module/plugins/internal/CaptchaService.py +++ b/module/plugins/internal/CaptchaService.py @@ -190,7 +190,7 @@ class ReCaptcha(CaptchaService): token1 = re.search(r'id="recaptcha-token" value="(.*?)">', html) self.plugin.logDebug("ReCaptcha token #1: %s" % token1.group(1)) - + html = self.plugin.req.load("https://www.google.com/recaptcha/api2/frame", get={'c' : token1.group(1), 'hl' : language, @@ -214,7 +214,7 @@ class ReCaptcha(CaptchaService): token4 = re.search(r'"rresp","(.*?)",', html) self.plugin.logDebug("ReCaptcha token #4: %s" % token4.group(1)) - + millis_captcha_loading = int(round(time.time() * 1000)) captcha_response = self.plugin.decryptCaptcha("https://www.google.com/recaptcha/api2/payload", get={'c':token4.group(1), 'k':key}, forceUser=True) |