diff options
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
|