diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-18 10:52:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-18 10:52:11 +0200 |
commit | 01da7eb561776ee706c1fd74e49a1b1664951d76 (patch) | |
tree | aa413795fe1e518657d4d234066a82400f56c2ed /module/plugins/accounts/HotfileCom.py | |
parent | rs fix, more cleanup stuff (diff) | |
download | pyload-01da7eb561776ee706c1fd74e49a1b1664951d76.tar.xz |
closed #157, account request cleanup
Diffstat (limited to 'module/plugins/accounts/HotfileCom.py')
-rw-r--r-- | module/plugins/accounts/HotfileCom.py | 9 |
1 files changed, 5 insertions, 4 deletions
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) |