diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-08 12:24:34 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-08 12:24:34 +0200 |
commit | c59aa4057608cd47084c66e41f363b5f981f2816 (patch) | |
tree | 73d787e55826537710ab526f583c46b0623c6c85 /module/plugins/hoster/UnibytesCom.py | |
parent | Spare improvements (diff) | |
download | pyload-c59aa4057608cd47084c66e41f363b5f981f2816.tar.xz |
Fixpack (5)
Diffstat (limited to 'module/plugins/hoster/UnibytesCom.py')
-rw-r--r-- | module/plugins/hoster/UnibytesCom.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/module/plugins/hoster/UnibytesCom.py b/module/plugins/hoster/UnibytesCom.py index c0bb6a13b..f06bd4421 100644 --- a/module/plugins/hoster/UnibytesCom.py +++ b/module/plugins/hoster/UnibytesCom.py @@ -30,14 +30,14 @@ class UnibytesCom(SimpleHoster): def handle_free(self, pyfile): - domain = "http://www.%s/" % self.PLUGIN_DOMAIN + domain = "http://www.%s/" % self.PLUGIN_DOMAIN action, post_data = self.parse_html_form('id="startForm"') - self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 0) - for _i in xrange(3): self.log_debug(action, post_data) - self.html = self.load(urlparse.urljoin(domain, action), post=post_data) + self.html = self.load(urlparse.urljoin(domain, action), + post=post_data, + redirect=False) m = re.search(r'location:\s*(\S+)', self.req.http.header, re.I) if m is not None: @@ -67,7 +67,5 @@ class UnibytesCom(SimpleHoster): elif last_step in ("captcha", "last"): post_data['captcha'] = self.captcha.decrypt(urlparse.urljoin(domain, "captcha.jpg")) - self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 1) - getInfo = create_getInfo(UnibytesCom) |