diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-20 18:43:15 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 22:46:01 +0100 |
commit | 5deded62d94c04be64d34f6b67d07803eea9b6bf (patch) | |
tree | a33f82a6208b3a922bf5e1883f134a1fb86a9217 /module/plugins/hoster/LuckyShareNet.py | |
parent | Update addons (diff) | |
download | pyload-5deded62d94c04be64d34f6b67d07803eea9b6bf.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/LuckyShareNet.py')
-rw-r--r-- | module/plugins/hoster/LuckyShareNet.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hoster/LuckyShareNet.py b/module/plugins/hoster/LuckyShareNet.py index 96fd0f829..1aa5501d5 100644 --- a/module/plugins/hoster/LuckyShareNet.py +++ b/module/plugins/hoster/LuckyShareNet.py @@ -51,14 +51,14 @@ class LuckyShareNet(SimpleHoster): self.log_debug("JSON: " + rep) - jso = self.parse_json(rep) - self.wait(jso['time']) + json_data = self.parse_json(rep) + self.wait(json_data['time']) - recaptcha = ReCaptcha(pyfile) + self.captcha = ReCaptcha(pyfile) - response, challenge = recaptcha.challenge() + response, challenge = self.captcha.challenge() rep = self.load(r"http://luckyshare.net/download/verify/challenge/%s/response/%s/hash/%s" % - (challenge, response, jso['hash'])) + (challenge, response, json_data['hash'])) self.log_debug("JSON: " + rep) @@ -67,6 +67,6 @@ class LuckyShareNet(SimpleHoster): elif 'link' in rep: self.captcha.correct() - jso.update(self.parse_json(rep)) - if jso['link']: - self.link = jso['link'] + json_data.update(self.parse_json(rep)) + if json_data['link']: + self.link = json_data['link'] |