summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-08-27 21:28:50 +0200
committerGravatar spoob <spoob@gmx.de> 2009-08-27 21:28:50 +0200
commit836e34327fc2f946f7844a7fd6cf4f3439ba4317 (patch)
tree429436e85713349ee2bbad1f8e23364438bd2f2f /module/network
parentfavicon fix (diff)
downloadpyload-836e34327fc2f946f7844a7fd6cf4f3439ba4317.tar.xz
Fixed Zippyshare.com
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index 99c04e055..b30766ef2 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -9,6 +9,7 @@ import base64
import cookielib
from gzip import GzipFile
import time
+from os import sep
import urllib
from cStringIO import StringIO
@@ -89,7 +90,9 @@ class Request:
self.pycurl.setopt(pycurl.CONNECTTIMEOUT, 30)
self.pycurl.setopt(pycurl.NOSIGNAL, 1)
self.pycurl.setopt(pycurl.NOPROGRESS, 0)
- self.pycurl.setopt(pycurl.COOKIEFILE, "")
+ cookie_file = "module" + sep + "cookies.txt"
+ self.pycurl.setopt(pycurl.COOKIEFILE, cookie_file)
+ self.pycurl.setopt(pycurl.COOKIEJAR, cookie_file)
self.pycurl.setopt(pycurl.PROGRESSFUNCTION, self.progress)
self.pycurl.setopt(pycurl.AUTOREFERER, 1)
self.pycurl.setopt(pycurl.HEADERFUNCTION, self.write_header)