diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-01 11:45:19 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-01 11:45:19 +0200 |
commit | 5eb9ef7b53ac398478791e75df92269f8e3b3963 (patch) | |
tree | 078731ae0d7714b5e661c13045e5618a56355caf /module/plugins | |
parent | fix last commit (diff) | |
download | pyload-5eb9ef7b53ac398478791e75df92269f8e3b3963.tar.xz |
closed #385
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/FileserveCom.py | 1 | ||||
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py index 53a970226..1ee19b00c 100644 --- a/module/plugins/hoster/FileserveCom.py +++ b/module/plugins/hoster/FileserveCom.py @@ -2,7 +2,6 @@ from __future__ import with_statement
import re
-from base64 import standard_b64encode
from module.plugins.Hoster import Hoster
from module.plugins.ReCaptcha import ReCaptcha
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index a5dc0b72e..4854dcef7 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -143,8 +143,9 @@ class MegauploadCom(Hoster): for i in range(10):
page = self.load("http://www.megaupload.com/?c=premium&l=1", decode=True)
+ # MU thinks dl is already running
if "Please finish this download before starting another one." in page and i != 9:
- sleep(1)
+ sleep(2)
elif i != 9:
try:
wait = re.search(r"Please wait (\d+) minutes", page).group(1)
@@ -152,7 +153,7 @@ class MegauploadCom(Hoster): except :
pass
else:
- wait = 1
+ wait = 2 # lowest limit seems to be 2 minutes
self.log.info(_("Megaupload: waiting %d minutes") % int(wait))
self.setWait(int(wait)*60, True)
|