summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r--module/plugins/hoster/MegauploadCom.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index 0380f5fe9..17b07b584 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -79,7 +79,10 @@ class MegauploadCom(Hoster):
check = self.checkDownload({"limit": "Download limit exceeded"})
if check == "limit":
wait = self.load("http://www.megaupload.com/?c=premium&l=1")
- wait = re.search(r"Please wait (\d+) minutes", wait).group(1)
+ try:
+ wait = re.search(r"Please wait (\d+) minutes", wait).group(1)
+ except:
+ wait = 1
self.log.info(_("Megaupload: waiting %d minues") % int(wait))
self.setWait(int(wait)*60, True)
self.wait()
@@ -122,8 +125,6 @@ class MegauploadCom(Hoster):
if re.search(r"Waiting time before each download begins", self.html[1]) is not None:
break
- print self.html[0]
-
def download_api(self):
url = "http://megaupload.com/mgr_linkcheck.php"