summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HotfileCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-18 10:52:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-18 10:52:11 +0200
commit01da7eb561776ee706c1fd74e49a1b1664951d76 (patch)
treeaa413795fe1e518657d4d234066a82400f56c2ed /module/plugins/accounts/HotfileCom.py
parentrs fix, more cleanup stuff (diff)
downloadpyload-01da7eb561776ee706c1fd74e49a1b1664951d76.tar.xz
closed #157, account request cleanup
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)