summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-04-13 18:54:55 +0200
committerGravatar spoob <spoob@gmx.de> 2010-04-13 18:54:55 +0200
commit835e3a576051d9efb558bfcb7964947ab289c255 (patch)
treeff776f8b1f225829e897ab301eeb744afa42a742 /module/plugins/hoster/MegauploadCom.py
parentfilefactory fix (diff)
downloadpyload-835e3a576051d9efb558bfcb7964947ab289c255.tar.xz
Pack Fixes
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r--module/plugins/hoster/MegauploadCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index deeedc691..a544775d4 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -31,14 +31,14 @@ class MegauploadCom(Plugin):
captcha_image = tempfile.NamedTemporaryFile(suffix=".gif").name
for i in range(5):
- self.html[0] = self.req.load(self.parent.url, cookies=True)
+ self.html[0] = self.load(self.parent.url, cookies=True)
url_captcha_html = re.search('(http://www.{,3}\.megaupload\.com/gencap.php\?.*\.gif)', self.html[0]).group(1)
- self.req.download(url_captcha_html, captcha_image, cookies=True)
+ self.download(url_captcha_html, captcha_image, cookies=True)
captcha = self.ocr.get_captcha(captcha_image)
os.remove(captcha_image)
captchacode = re.search('name="captchacode" value="(.*)"', self.html[0]).group(1)
megavar = re.search('name="megavar" value="(.*)">', self.html[0]).group(1)
- self.html[1] = self.req.load(self.parent.url, post={"captcha": captcha, "captchacode": captchacode, "megavar": megavar}, cookies=True)
+ self.html[1] = self.load(self.parent.url, post={"captcha": captcha, "captchacode": captchacode, "megavar": megavar}, cookies=True)
if re.search(r"Waiting time before each download begins", self.html[1]) != None:
break
self.time_plus_wait = time() + 45