From 836e34327fc2f946f7844a7fd6cf4f3439ba4317 Mon Sep 17 00:00:00 2001 From: spoob Date: Thu, 27 Aug 2009 21:28:50 +0200 Subject: Fixed Zippyshare.com --- module/network/Request.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/network') 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) -- cgit v1.2.3