summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-31 21:00:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-31 21:00:58 +0200
commitacbb15e1c6b53b64b119a41d8ae849f529551c6c (patch)
tree67ab4797c4e8ce302c901020d9c65cff0f383628 /module/plugins
parentunlimited retries for MU (diff)
downloadpyload-acbb15e1c6b53b64b119a41d8ae849f529551c6c.tar.xz
MU fix
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/MegauploadCom.py6
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):