From 01da7eb561776ee706c1fd74e49a1b1664951d76 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 18 Oct 2010 10:52:11 +0200 Subject: closed #157, account request cleanup --- module/plugins/accounts/ShareonlineBiz.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/plugins/accounts/ShareonlineBiz.py') diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index 15a554db0..3564d489c 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -29,8 +29,7 @@ class ShareonlineBiz(Account): __author_name__ = ("mkaay") __author_mail__ = ("mkaay@mkaay.de") - def loadAccountInfo(self, user): - req = self.getAccountRequest(user) + def loadAccountInfo(self, user, req): src = req.load("http://www.share-online.biz/members.php?setlang=en") validuntil = re.search(r'Package Expire Date:\s*(\d+/\d+/\d+)', src).group(1) validuntil = int(mktime(strptime(validuntil, "%m/%d/%y"))) @@ -38,8 +37,7 @@ class ShareonlineBiz(Account): tmp = {"validuntil":validuntil, "trafficleft":-1} return tmp - def login(self, user, data): - req = self.getAccountRequest(user) + def login(self, user, data, req): post_vars = { "act": "login", "location": "index.php", -- cgit v1.2.3