diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-30 18:20:44 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-30 18:20:44 +0100 |
commit | 371ed3e634a9de63d9a5a707a033541272f67437 (patch) | |
tree | c382ebc95c970adab002339063a789c62dcec10f /module/plugins/accounts/MegauploadCom.py | |
parent | improved performance for wlan (diff) | |
download | pyload-371ed3e634a9de63d9a5a707a033541272f67437.tar.xz |
MU premium lifetime fix
Diffstat (limited to 'module/plugins/accounts/MegauploadCom.py')
-rw-r--r-- | module/plugins/accounts/MegauploadCom.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/plugins/accounts/MegauploadCom.py b/module/plugins/accounts/MegauploadCom.py index 2f33e791b..df539507c 100644 --- a/module/plugins/accounts/MegauploadCom.py +++ b/module/plugins/accounts/MegauploadCom.py @@ -33,6 +33,8 @@ class MegauploadCom(Account): def loadAccountInfo(self, user, req): page = req.load("http://www.megaupload.com/?c=account") + open("mu.html", "wb").write(page) + free = re.findall(r"Account type:\s*</div>\s*<div class=\"acc_txt_bl2\">\s*<b>Regular</b>",page,re.IGNORECASE+re.MULTILINE) if free: return {"validuntil": -1, "trafficleft":-1, "premium": False} @@ -40,6 +42,9 @@ class MegauploadCom(Account): if 'id="directdownloadstxt">Activate' in page: self.core.log.warning(_("Activate direct Download in your MegaUpload Account")) + if "<b>Lifetime Platinum</b>" in page: + return {"validuntil": -1, "trafficleft": -1, "premium": True} + valid = re.search(r"(\d+) days remaining", page).group(1) valid = time()+ 60 * 60 * 24 * int(valid) |