diff options
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/accounts/DepositfilesCom.py | 4 | ||||
| -rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 3 | 
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, | 
