summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-11-10 16:27:17 +0100
committerGravatar Jeix <devnull@localhost> 2010-11-10 16:27:17 +0100
commit1fcfec4e2bd558975d36f1f294cdc52abeb5f4e5 (patch)
tree2c3101f704e75ba74919e053a9cbc7b3f7d3b208 /module/plugins
parent... stupid me -.- (diff)
downloadpyload-1fcfec4e2bd558975d36f1f294cdc52abeb5f4e5.tar.xz
some design improvements on gui
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/DepositfilesCom.py4
-rw-r--r--module/plugins/hoster/MegauploadCom.py3
2 files changed, 6 insertions, 1 deletions
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'<div class="error_message">Sie haben eine falsche Benutzername-Passwort-Kombination verwendet.</div>' 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,