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/HotfileCom.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/plugins/accounts/HotfileCom.py') diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py index 52bff87fe..a4354eb2e 100644 --- a/module/plugins/accounts/HotfileCom.py +++ b/module/plugins/accounts/HotfileCom.py @@ -29,7 +29,7 @@ class HotfileCom(Account): __author_name__ = ("mkaay") __author_mail__ = ("mkaay@mkaay.de") - def loadAccountInfo(self, user): + def loadAccountInfo(self, user, req): resp = self.apiCall("getuserinfo", user=user) if resp.startswith("."): self.core.debug("HotfileCom API Error: %s" % resp) @@ -68,10 +68,11 @@ class HotfileCom(Account): post.update({"action": method}) post.update({"username":user, "passwordmd5dig":pwhash, "digest":digest}) - return req.load("http://api.hotfile.com/", post=post) + resp = req.load("http://api.hotfile.com/", post=post) + req.clean() + return resp - def login(self, user, data): - req = self.getAccountRequest(user) + def login(self, user, data, req): cj = self.getAccountCookies(user) cj.setCookie("hotfile.com", "lang", "en") req.load("http://hotfile.com/", cookies=True) -- cgit v1.2.3