summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilecloudIo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 10:59:52 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 10:59:52 +0200
commitff9383bfe06d14d23bc0ed6af79aa8967965d078 (patch)
tree78a09f0c47eb392d6ca3c8bf948dc9a99709861b /module/plugins/accounts/FilecloudIo.py
parentFix addons (diff)
downloadpyload-ff9383bfe06d14d23bc0ed6af79aa8967965d078.tar.xz
Code cosmetics (3)
Diffstat (limited to 'module/plugins/accounts/FilecloudIo.py')
-rw-r--r--module/plugins/accounts/FilecloudIo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index d8b60ccbc..5e31988b7 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -19,26 +19,26 @@ class FilecloudIo(Account):
#: It looks like the first API request always fails, so we retry 5 times, it should work on the second try
for _i in xrange(5):
rep = self.load("https://secure.filecloud.io/api-fetch_apikey.api",
- post={"username": user, "password": self.get_account_data(user)['password']})
+ post={'username': user, 'password': self.get_account_data(user)['password']})
rep = json_loads(rep)
if rep['status'] == 'ok':
break
elif rep['status'] == 'error' and rep['message'] == 'no such user or wrong password':
self.log_error(_("Wrong username or password"))
- return {"valid": False, "premium": False}
+ return {'valid': False, 'premium': False}
else:
- return {"premium": False}
+ return {'premium': False}
akey = rep['akey']
self.accounts[user]['akey'] = akey #: Saved for hoster plugin
rep = self.load("http://api.filecloud.io/api-fetch_account_details.api",
- post={"akey": akey})
+ post={'akey': akey})
rep = json_loads(rep)
if rep['is_premium'] == 1:
- return {"validuntil": float(rep['premium_until']), "trafficleft": -1}
+ return {'validuntil': float(rep['premium_until']), 'trafficleft': -1}
else:
- return {"premium": False}
+ return {'premium': False}
def login(self, user, data, req):