diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 21:00:58 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 21:00:58 +0200 |
commit | acbb15e1c6b53b64b119a41d8ae849f529551c6c (patch) | |
tree | 67ab4797c4e8ce302c901020d9c65cff0f383628 | |
parent | unlimited retries for MU (diff) | |
download | pyload-acbb15e1c6b53b64b119a41d8ae849f529551c6c.tar.xz |
MU fix
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index 651d408ff..8eee31544 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -137,11 +137,11 @@ class MegauploadCom(Hoster): self.download(self.lastCheck.group(1))
def checkWait(self):
- wait = self.load("http://www.megaupload.com/?c=premium&l=1")
+ wait = self.load("http://www.megaupload.com/?c=premium&l=1", decode=True)
try:
wait = re.search(r"Please wait (\d+) minutes", wait).group(1)
except:
- wait = 1
+ wait = 2
self.log.info(_("Megaupload: waiting %d minutes") % int(wait))
self.setWait(int(wait)*60, True)
@@ -149,7 +149,7 @@ class MegauploadCom(Hoster): if not self.premium:
self.req.clearCookies()
- self.retry(max_tries=0)
+ self.retry(max_tries=10)
def download_html(self):
for i in range(3):
|