summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DlFreeFr.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/DlFreeFr.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/DlFreeFr.py')
-rw-r--r--module/plugins/hoster/DlFreeFr.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/DlFreeFr.py b/module/plugins/hoster/DlFreeFr.py
index 03c8f10cd..f0a8aa933 100644
--- a/module/plugins/hoster/DlFreeFr.py
+++ b/module/plugins/hoster/DlFreeFr.py
@@ -56,7 +56,7 @@ class AdYouLike:
res = self.plugin.load(
r'http://api-ayl.appspot.com/challenge?key=%(ayl_key)s&env=%(ayl_env)s&callback=%(callback)s' % {
- "ayl_key": ayl_data[self.engine]["key"], "ayl_env": ayl_data["all"]["env"],
+ "ayl_key": ayl_data[self.engine]['key'], "ayl_env": ayl_data['all']['env'],
"callback": self.ADYOULIKE_CALLBACK})
found = re.search(self.ADYOULIKE_CHALLENGE_PATTERN, res)
@@ -83,7 +83,7 @@ class AdYouLike:
"""
response = None
try:
- instructions_visual = challenge["translations"][ayl["all"]["lang"]]["instructions_visual"]
+ instructions_visual = challenge['translations'][ayl['all']['lang']]['instructions_visual']
found = re.search(u".*«(.*)».*", instructions_visual)
if found:
response = found.group(1).strip()
@@ -98,9 +98,9 @@ class AdYouLike:
self.plugin.fail("AdYouLike result failed")
return {"_ayl_captcha_engine": self.engine,
- "_ayl_env": ayl["all"]["env"],
- "_ayl_tid": challenge["tid"],
- "_ayl_token_challenge": challenge["token"],
+ "_ayl_env": ayl['all']['env'],
+ "_ayl_tid": challenge['tid'],
+ "_ayl_token_challenge": challenge['token'],
"_ayl_response": response}