From faf6fbc956f8c23871c0bcb91a84986ffd689201 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 5 Oct 2010 20:07:44 +0200 Subject: changed dl function for test purpose --- module/plugins/accounts/HotfileCom.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/plugins/accounts/HotfileCom.py') diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py index f623e56f1..52bff87fe 100644 --- a/module/plugins/accounts/HotfileCom.py +++ b/module/plugins/accounts/HotfileCom.py @@ -75,4 +75,7 @@ class HotfileCom(Account): cj = self.getAccountCookies(user) cj.setCookie("hotfile.com", "lang", "en") req.load("http://hotfile.com/", cookies=True) - req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True) + page = req.load("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 -- cgit v1.2.3