diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 11:44:24 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-29 11:44:24 +0100 |
commit | 31c5e0c1cbb6da955973bdce360eedbe61225688 (patch) | |
tree | 0170556dd7528723c803fb1c299199aca143ab24 /module/plugins/accounts/NetloadIn.py | |
parent | more fixes and chunk+resume debug (diff) | |
download | pyload-31c5e0c1cbb6da955973bdce360eedbe61225688.tar.xz |
fixed accounts
Diffstat (limited to 'module/plugins/accounts/NetloadIn.py')
-rw-r--r-- | module/plugins/accounts/NetloadIn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py index 89e4c0037..4f5b08689 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.getPage("http://netload.in/index.php?id=2") + page = req.load("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.getPage("http://netload.in/index.php", None, { "txtuser" : user, "txtpass" : data['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True) + page = req.load("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() |