summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-10 20:16:14 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-10 20:16:14 +0200
commitc880a3b8e048b4f9fea5413f09d3745d5b37609f (patch)
treec19fe4efd71e2e8bd286bbaf551cb0ffe7172f6c /module/plugins/hoster/MegauploadCom.py
parentworkaround (diff)
downloadpyload-c880a3b8e048b4f9fea5413f09d3745d5b37609f.tar.xz
several fixes
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"