MCPcopy
hub / github.com/pyload/pyload / grab_info

Method grab_info

module/plugins/accounts/OverLoadMe.py:27–41  ·  view source on GitHub ↗
(self, user, password, data)

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 2

log_debugMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected