diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-11 17:08:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-11 17:08:29 +0100 |
commit | 1de45d9f4f2a39e205dd99e0dcf8b0c323537fea (patch) | |
tree | b83d12fd13a27d798326d8a5e2fda136cab009e4 /pyload/plugins/hoster/UnibytesCom.py | |
parent | Bucket and CookieJar from 0.5.0 (diff) | |
download | pyload-1de45d9f4f2a39e205dd99e0dcf8b0c323537fea.tar.xz |
Spare code cosmetics
Diffstat (limited to 'pyload/plugins/hoster/UnibytesCom.py')
-rw-r--r-- | pyload/plugins/hoster/UnibytesCom.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pyload/plugins/hoster/UnibytesCom.py b/pyload/plugins/hoster/UnibytesCom.py index 1fcd1d89d..d0d65840d 100644 --- a/pyload/plugins/hoster/UnibytesCom.py +++ b/pyload/plugins/hoster/UnibytesCom.py @@ -4,8 +4,6 @@ import re from urlparse import urljoin -from pycurl import FOLLOWLOCATION - from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo @@ -32,11 +30,10 @@ class UnibytesCom(SimpleHoster): def handleFree(self): domain = "http://www.%s/" % self.HOSTER_DOMAIN action, post_data = self.parseHtmlForm('id="startForm"') - self.req.http.c.setopt(FOLLOWLOCATION, 0) for _i in xrange(8): self.logDebug(action, post_data) - self.html = self.load(urljoin(domain, action), post=post_data) + self.html = self.load(urljoin(domain, action), post=post_data, follow_location=False) m = re.search(r'location:\s*(\S+)', self.req.http.header, re.I) if m: @@ -67,7 +64,6 @@ class UnibytesCom(SimpleHoster): else: self.fail(_("No valid captcha code entered")) - self.req.http.c.setopt(FOLLOWLOCATION, 1) self.download(url) |