summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-06 16:35:24 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-06 16:35:24 +0200
commit477bc8cb8b7f5d7e0d938c45b48c6cebd1b371d7 (patch)
tree11499d74b286312d72f1a98c393d438055e3fb33 /module/plugins/hoster/MegauploadCom.py
parentfreakshare.com, netload fix (diff)
downloadpyload-477bc8cb8b7f5d7e0d938c45b48c6cebd1b371d7.tar.xz
closed #147
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r--module/plugins/hoster/MegauploadCom.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index 4d3a2a566..4c851a5b2 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -63,7 +63,6 @@ class MegauploadCom(Hoster):
def process(self, pyfile):
- self.pyfile = pyfile
if not self.account:
self.download_html()
self.download_api()
@@ -82,6 +81,12 @@ class MegauploadCom(Hoster):
pyfile.name = self.get_file_name()
self.download(pyfile.url)
+ check = self.checkDownload({"limit": "Download limit exceeded"}) #@TODO catch it earlier in html pages if possible
+ if check == "limit":
+ self.setWait(3600, True)
+ self.wait()
+ self.process(pyfile)
+
def download_html(self):
for i in range(5):
self.html[0] = self.load(self.pyfile.url)
@@ -112,6 +117,7 @@ class MegauploadCom(Hoster):
if re.search(r"Waiting time before each download begins", self.html[1]) is not None:
break
+
def download_api(self):
url = "http://megaupload.com/mgr_linkcheck.php"