diff options
author | Jeix <devnull@localhost> | 2010-11-19 16:04:43 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-11-19 16:04:43 +0100 |
commit | e7ed9d55d271005a9d10a73c414e12f07cee1616 (patch) | |
tree | 15ec3e45643d128cf72847d827794e9b0eeb0bc1 /module/plugins | |
parent | add_files rpc method (diff) | |
download | pyload-e7ed9d55d271005a9d10a73c414e12f07cee1616.tar.xz |
megaupload pw protected files, GUI fixes
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index a16369784..45711191e 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -108,7 +108,9 @@ class MegauploadCom(Hoster): 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")) + pw = self.pyfile.package().password + self.html[1] = self.load(self.pyfile.url, post={"filepassword":pw}) + break # looks like there is no captcha for pw protected files 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, |