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/Account.py | 2 +- module/plugins/accounts/HotfileCom.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 727356ee4..d93ff7e08 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -180,7 +180,7 @@ class Account(): def empty(self, user): if self.infos.has_key(user): - self.core.log.warning(_("%(plugin)s Account %(user)s has not enough trafficE") % {"plugin" : self.__name__, "user": user}) + self.core.log.warning(_("%(plugin)s Account %(user)s has not enough traffic") % {"plugin" : self.__name__, "user": user}) self.infos[user].update({"trafficleft": 0}) def expired(self, user): 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