summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HotfileCom.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-12-22 13:45:30 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-12-22 13:45:30 +0100
commitdde6a329fdaa5dca48080770dee82cb51cf12585 (patch)
treed665099c49a0ef1f5c09a9d2f8b19ba09f531437 /module/plugins/accounts/HotfileCom.py
parentat least its downloading now (diff)
downloadpyload-dde6a329fdaa5dca48080770dee82cb51cf12585.tar.xz
refactoring part 1: deprecation warnings, reduced debug, cookie compatibility
Diffstat (limited to 'module/plugins/accounts/HotfileCom.py')
-rw-r--r--module/plugins/accounts/HotfileCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py
index a4354eb2e..579267af3 100644
--- a/module/plugins/accounts/HotfileCom.py
+++ b/module/plugins/accounts/HotfileCom.py
@@ -57,7 +57,7 @@ class HotfileCom(Account):
req = self.getAccountRequest(user)
- digest = req.load("http://api.hotfile.com/", post={"action":"getdigest"})
+ digest = req.getPage("http://api.hotfile.com/", post={"action":"getdigest"})
h = hashlib.md5()
h.update(data["password"])
hp = h.hexdigest()
@@ -68,7 +68,7 @@ class HotfileCom(Account):
post.update({"action": method})
post.update({"username":user, "passwordmd5dig":pwhash, "digest":digest})
- resp = req.load("http://api.hotfile.com/", post=post)
+ resp = req.getPage("http://api.hotfile.com/", post=post)
req.clean()
return resp
@@ -76,7 +76,7 @@ class HotfileCom(Account):
cj = self.getAccountCookies(user)
cj.setCookie("hotfile.com", "lang", "en")
req.load("http://hotfile.com/", cookies=True)
- page = req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True)
+ page = req.getPage("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True)
if "Bad username/password" in page:
- self.wrongPassword() \ No newline at end of file
+ self.wrongPassword()