summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RyushareCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 16:10:01 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:26:07 +0200
commit7b8c458cca7d21a029620f98e453f746fce69cd1 (patch)
tree9e97b0003a00ff8ac9ee6b777d94bb998c911d05 /module/plugins/hoster/RyushareCom.py
parentFix code indentation, some bad whitespaces and missing authors + use 'not' in... (diff)
downloadpyload-7b8c458cca7d21a029620f98e453f746fce69cd1.tar.xz
Prefer single quote for dict key name
Diffstat (limited to 'module/plugins/hoster/RyushareCom.py')
-rw-r--r--module/plugins/hoster/RyushareCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py
index ecfe389e3..a26827401 100644
--- a/module/plugins/hoster/RyushareCom.py
+++ b/module/plugins/hoster/RyushareCom.py
@@ -31,7 +31,7 @@ class RyushareCom(XFileSharingPro):
self.html = self.load(self.pyfile.url)
action, inputs = self.parseHtmlForm(input_names={"op": re.compile("^download")})
if "method_premium" in inputs:
- del inputs["method_premium"]
+ del inputs['method_premium']
self.html = self.load(self.pyfile.url, post=inputs)
action, inputs = self.parseHtmlForm('F1')
@@ -45,7 +45,7 @@ class RyushareCom(XFileSharingPro):
match = re.search(self.WAIT_PATTERN, self.html)
if match:
m = match.groupdict(0)
- waittime = int(m["hour"]) * 60 * 60 + int(m["min"]) * 60 + int(m["sec"])
+ waittime = int(m['hour']) * 60 * 60 + int(m['min']) * 60 + int(m['sec'])
self.setWait(waittime, True)
retry = True
@@ -62,8 +62,8 @@ class RyushareCom(XFileSharingPro):
captcha = SolveMedia(self)
challenge, response = captcha.challenge(captchaKey)
- inputs["adcopy_challenge"] = challenge
- inputs["adcopy_response"] = response
+ inputs['adcopy_challenge'] = challenge
+ inputs['adcopy_response'] = response
self.html = self.load(self.pyfile.url, post=inputs)
if "WRONG CAPTCHA" in self.html: