summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/NetloadIn.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/NetloadIn.py')
-rw-r--r--module/plugins/accounts/NetloadIn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py
index 4f5b08689..89e4c0037 100644
--- a/module/plugins/accounts/NetloadIn.py
+++ b/module/plugins/accounts/NetloadIn.py
@@ -30,13 +30,13 @@ class NetloadIn(Account):
__author_mail__ = ("RaNaN@pyload.org")
def loadAccountInfo(self, user, req):
- page = req.load("http://netload.in/index.php?id=2")
+ page = req.getPage("http://netload.in/index.php?id=2")
left = r">(\d+) Tage, (\d+) Stunden<"
left = re.search(left, page)
validuntil = time() + int(left.group(1)) * 24 * 60 * 60 + int(left.group(2)) * 60 * 60
return {"validuntil": validuntil, "trafficleft": -1}
def login(self, user, data,req):
- page = req.load("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True)
+ page = req.getPage("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True)
if "password or it might be invalid!" in page:
self.wrongPassword()