summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/SimplydebridCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
commit8f17f875f6e28f73ddb10da59c6464bd04922222 (patch)
tree29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/SimplydebridCom.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
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 1707efe22..b123021dd 100644
--- a/module/plugins/accounts/SimplydebridCom.py
+++ b/module/plugins/accounts/SimplydebridCom.py
@@ -16,7 +16,7 @@ class SimplydebridCom(Account):
__authors__ = [("Kagenoshin", "kagenoshin@gmx.ch")]
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
get_data = {'login': 2, 'u': self.loginname, 'p': self.password}
res = self.load("http://simply-debrid.com/api.php", get=get_data)
data = [x.strip() for x in res.split(";")]
@@ -26,11 +26,11 @@ class SimplydebridCom(Account):
return {'trafficleft': -1, 'validuntil': time.mktime(time.strptime(str(data[2]), "%d/%m/%Y"))}
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
self.loginname = user
- self.password = data['password']
+ self.password = password
get_data = {'login': 1, 'u': self.loginname, 'p': self.password}
res = self.load("https://simply-debrid.com/api.php", get=get_data)
if res != "02: loggin success":
- self.wrong_password()
+ self.fail()