| 25 | str.strip, html.replace("\"", "").split(",")) if x] |
| 26 | |
| 27 | def grab_info(self, user, password, data): |
| 28 | html = self.load("https://api.over-load.me/account.php", |
| 29 | get={'user': user, |
| 30 | 'auth': password}).strip() |
| 31 | |
| 32 | data = json.loads(html) |
| 33 | self.log_debug(data) |
| 34 | |
| 35 | #: Check for premium |
| 36 | if data['membership'] == "Free": |
| 37 | return {'premium': False, 'validuntil': None, 'trafficleft': None} |
| 38 | else: |
| 39 | return {'premium': True, |
| 40 | 'validuntil': data['expirationunix'], |
| 41 | 'trafficleft': -1} |
| 42 | |
| 43 | def signin(self, user, password, data): |
| 44 | html = self.load("https://api.over-load.me/account.php", |