From 1fcfec4e2bd558975d36f1f294cdc52abeb5f4e5 Mon Sep 17 00:00:00 2001 From: Jeix Date: Wed, 10 Nov 2010 16:27:17 +0100 Subject: some design improvements on gui --- module/plugins/accounts/DepositfilesCom.py | 4 +++- module/plugins/hoster/MegauploadCom.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'module/plugins') diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py index 4a5792c40..b0730de8e 100644 --- a/module/plugins/accounts/DepositfilesCom.py +++ b/module/plugins/accounts/DepositfilesCom.py @@ -42,4 +42,6 @@ class DepositfilesCom(Account): def login(self, user, data, req): req.load("http://depositfiles.com/de/gold/payment.php") - req.load("http://depositfiles.com/de/login.php", get={"return": "/de/gold/payment.php"}, post={"login": user, "password": data["password"]}) + src = req.load("http://depositfiles.com/de/login.php", get={"return": "/de/gold/payment.php"}, post={"login": user, "password": data["password"]}) + if r'
Sie haben eine falsche Benutzername-Passwort-Kombination verwendet.
' in src: + self.wrongPassword() diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index 1cc3c7aaf..7993233dc 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -101,6 +101,9 @@ class MegauploadCom(Hoster): count = 0 if "The file that you're trying to download is larger than 1 GB" in self.html[0]: self.fail(_("You need premium to download files larger than 1 GB")) + + if r'Please enter the password below to proceed' in self.html[0]: + self.fail(_("The file is password protected")) while "document.location='http://www.megaupload.com/?c=msg" in self.html[0]: # megaupload.com/?c=msg usually says: Please check back in 2 minutes, -- cgit v1.2.3