summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-11-19 16:04:43 +0100
committerGravatar Jeix <devnull@localhost> 2010-11-19 16:04:43 +0100
commite7ed9d55d271005a9d10a73c414e12f07cee1616 (patch)
tree15ec3e45643d128cf72847d827794e9b0eeb0bc1 /module/plugins
parentadd_files rpc method (diff)
downloadpyload-e7ed9d55d271005a9d10a73c414e12f07cee1616.tar.xz
megaupload pw protected files, GUI fixes
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/MegauploadCom.py4
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,