summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/SimplydebridCom.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/accounts/SimplydebridCom.py
parent[Keep2shareCc] Fix account __name__ (diff)
downloadpyload-c9e31d875d32de31e54959b82bc35eff2b3e0f3f.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/accounts/SimplydebridCom.py')
-rw-r--r--module/plugins/accounts/SimplydebridCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/SimplydebridCom.py b/module/plugins/accounts/SimplydebridCom.py
index 784a90ae3..7979fd5d5 100644
--- a/module/plugins/accounts/SimplydebridCom.py
+++ b/module/plugins/accounts/SimplydebridCom.py
@@ -17,8 +17,8 @@ class SimplydebridCom(Account):
def loadAccountInfo(self, user, req):
get_data = {'login': 2, 'u': self.loginname, 'p': self.password}
- response = req.load("http://simply-debrid.com/api.php", get=get_data, decode=True)
- data = [x.strip() for x in response.split(";")]
+ res = req.load("http://simply-debrid.com/api.php", get=get_data, decode=True)
+ data = [x.strip() for x in res.split(";")]
if str(data[0]) != "1":
return {"premium": False}
else:
@@ -29,6 +29,6 @@ class SimplydebridCom(Account):
self.loginname = user
self.password = data['password']
get_data = {'login': 1, 'u': self.loginname, 'p': self.password}
- response = req.load("http://simply-debrid.com/api.php", get=get_data, decode=True)
- if response != "02: loggin success":
+ res = req.load("http://simply-debrid.com/api.php", get=get_data, decode=True)
+ if res != "02: loggin success":
self.wrongPassword()