From acbb15e1c6b53b64b119a41d8ae849f529551c6c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 31 Aug 2011 21:00:58 +0200 Subject: MU fix --- module/plugins/hoster/MegauploadCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/MegauploadCom.py') 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): -- cgit v1.2.3