diff options
Diffstat (limited to 'module/plugins/accounts/NetloadIn.py')
-rwxr-xr-x | module/plugins/accounts/NetloadIn.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py index cef3e298b..3e3bd93c1 100755 --- a/module/plugins/accounts/NetloadIn.py +++ b/module/plugins/accounts/NetloadIn.py @@ -17,10 +17,12 @@ @author: mkaay """ -from module.plugins.Account import Account import re from time import time +from module.plugins.Account import Account + + class NetloadIn(Account): __name__ = "NetloadIn" __version__ = "0.22" @@ -41,9 +43,11 @@ class NetloadIn(Account): validuntil = None premium = False trafficleft = None - return {"validuntil": validuntil, "trafficleft": trafficleft, "premium" : premium} - - def login(self, user, data,req): - page = req.load("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : "Login"}, cookies=True) + return {"validuntil": validuntil, "trafficleft": trafficleft, "premium": premium} + + def login(self, user, data, req): + page = req.load("http://netload.in/index.php", None, + {"txtuser": user, "txtpass": data['password'], "txtcheck": "login", "txtlogin": "Login"}, + cookies=True) if "password or it might be invalid!" in page: self.wrongPassword() |