summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilecloudIo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-10 00:19:51 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-10 00:19:51 +0100
commitc9e31d875d32de31e54959b82bc35eff2b3e0f3f (patch)
tree5022eadf2ac5c65ba075f172af873b737310ed66 /module/plugins/hoster/FilecloudIo.py
parent[Keep2shareCc] Fix account __name__ (diff)
downloadpyload-c9e31d875d32de31e54959b82bc35eff2b3e0f3f.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/hoster/FilecloudIo.py')
-rw-r--r--module/plugins/hoster/FilecloudIo.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/module/plugins/hoster/FilecloudIo.py b/module/plugins/hoster/FilecloudIo.py
index f31be155d..819a7faf3 100644
--- a/module/plugins/hoster/FilecloudIo.py
+++ b/module/plugins/hoster/FilecloudIo.py
@@ -64,26 +64,26 @@ class FilecloudIo(SimpleHoster):
self.retry(2)
json_url = "http://filecloud.io/download-request.json"
- response = self.load(json_url, post=data)
- self.logDebug(response)
- response = json_loads(response)
+ res = self.load(json_url, post=data)
+ self.logDebug(res)
+ res = json_loads(res)
- if "error" in response and response['error']:
- self.fail(response)
+ if "error" in res and res['error']:
+ self.fail(res)
- self.logDebug(response)
- if response['captcha']:
+ self.logDebug(res)
+ if res['captcha']:
data['ctype'] = "recaptcha"
for _i in xrange(5):
data['recaptcha_challenge'], data['recaptcha_response'] = recaptcha.challenge(captcha_key)
json_url = "http://filecloud.io/download-request.json"
- response = self.load(json_url, post=data)
- self.logDebug(response)
- response = json_loads(response)
+ res = self.load(json_url, post=data)
+ self.logDebug(res)
+ res = json_loads(res)
- if "retry" in response and response['retry']:
+ if "retry" in res and res['retry']:
self.invalidCaptcha()
else:
self.correctCaptcha()
@@ -91,7 +91,7 @@ class FilecloudIo(SimpleHoster):
else:
self.fail(_("Incorrect captcha"))
- if response['dl']:
+ if res['dl']:
self.html = self.load('http://filecloud.io/download.html')
m = re.search(self.LINK_PATTERN % self.info['ID'], self.html)