diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 21:47:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 21:47:33 +0200 |
commit | fe2450274171bfca8305f29c08158474b1b6df28 (patch) | |
tree | c53c9d0ab5caf2442adf4e34394578634bef6e3a /module/plugins | |
parent | MU: better wait time detection (diff) | |
download | pyload-fe2450274171bfca8305f29c08158474b1b6df28.tar.xz |
fix last commit
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index ccca0cb4d..a5dc0b72e 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -142,12 +142,12 @@ class MegauploadCom(Hoster): wait = 0
for i in range(10):
- wait = self.load("http://www.megaupload.com/?c=premium&l=1", decode=True)
- if "Please finish this download before starting another one." in wait:
+ page = self.load("http://www.megaupload.com/?c=premium&l=1", decode=True)
+ if "Please finish this download before starting another one." in page and i != 9:
sleep(1)
elif i != 9:
try:
- wait = re.search(r"Please wait (\d+) minutes", wait).group(1)
+ wait = re.search(r"Please wait (\d+) minutes", page).group(1)
break
except :
pass
|