summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HotfileCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/HotfileCom.py')
-rw-r--r--module/plugins/accounts/HotfileCom.py9
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)