diff options
Diffstat (limited to 'module/plugins/accounts/SimplydebridCom.py')
-rw-r--r-- | module/plugins/accounts/SimplydebridCom.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/module/plugins/accounts/SimplydebridCom.py b/module/plugins/accounts/SimplydebridCom.py index b123021dd..84c38227e 100644 --- a/module/plugins/accounts/SimplydebridCom.py +++ b/module/plugins/accounts/SimplydebridCom.py @@ -17,8 +17,10 @@ class SimplydebridCom(Account): 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) + res = self.load("http://simply-debrid.com/api.php", + get={'login': 2, + 'u' : user, + 'p' : password}) data = [x.strip() for x in res.split(";")] if str(data[0]) != "1": return {'premium': False} @@ -27,10 +29,9 @@ class SimplydebridCom(Account): def login(self, user, password, data, req): - self.loginname = user - 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) + res = self.load("https://simply-debrid.com/api.php", + get={'login': 1, + 'u' : user, + 'p' : password}) if res != "02: loggin success": - self.fail() + self.login_fail() |