summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-06-22 20:13:42 +0200
committerGravatar Jeix <devnull@localhost> 2010-06-22 20:13:42 +0200
commit88b2e92ff8b48af1291088a87dd69d41842537b6 (patch)
treebcbdc6cdc4e7f906022e94318e818dbeba26acdf /module/network
parentdeleted some print statements (diff)
downloadpyload-88b2e92ff8b48af1291088a87dd69d41842537b6.tar.xz
porno update, new plugins:
Pornhub Redtube Pornhost
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index 1fb76d7e0..4c7de2b22 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -123,12 +123,13 @@ class Request:
return self.cookieJar.getCookie(name)
return None
- def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False):
+ def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, no_post_encode=False):
url = str(url)
if post:
- post = urllib.urlencode(post)
+ if not no_post_encode:
+ post = urllib.urlencode(post)
else:
post = None
@@ -199,12 +200,13 @@ class Request:
self.pycurl.setopt(pycurl.PROXY, adress.split(":")[0])
self.pycurl.setopt(pycurl.PROXYPORT, adress.split(":")[1])
- def download(self, url, file_name, get={}, post={}, ref=True, cookies=True):
+ def download(self, url, file_name, get={}, post={}, ref=True, cookies=True, no_post_encode=False):
url = str(url)
if post:
- post = urllib.urlencode(post)
+ if not no_post_encode:
+ post = urllib.urlencode(post)
else:
post = None