diff options
author | spoob <spoob@gmx.de> | 2009-06-16 22:57:05 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-06-16 22:57:05 +0200 |
commit | 3a04eba163f0c577ebfd29c160826d5226019375 (patch) | |
tree | 78772fa860f5bc63793565301bf2b768565884e7 | |
parent | removed wait time for Zippyshare.com (diff) | |
download | pyload-3a04eba163f0c577ebfd29c160826d5226019375.tar.xz |
fixed request bug
-rw-r--r-- | Plugins/RapidshareCom.py | 2 | ||||
-rwxr-xr-x | module/network/Request.py | 7 | ||||
-rw-r--r-- | module/thread_list.py | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index 24847386a..0adae9c15 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -133,4 +133,4 @@ class RapidshareCom(Plugin): if self.config['premium']: self.req.add_auth(self.config['username'], self.config['password']) - self.req.download(url, location)
\ No newline at end of file + self.req.download(url, location) diff --git a/module/network/Request.py b/module/network/Request.py index 2b3545dd8..0b518cf66 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -130,11 +130,10 @@ class Request: if cookies: self.add_cookies(req) #add cookies + rep = self.opener.open(req) - rep = self.opener.open(req) - - for cookie in self.cj.make_cookies(rep, req): - self.cookies.append(cookie) + for cookie in self.cj.make_cookies(rep, req): + self.cookies.append(cookie) if not self.dl: self.dl = True diff --git a/module/thread_list.py b/module/thread_list.py index a7e92b77d..677fe7ecc 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -117,8 +117,8 @@ class Thread_List(object): data = data.replace(pyfile.url + '\n', "") - with open(self.parent.config['link_file'], 'w') as f: - f.write(data) + #with open(self.parent.config['link_file'], 'w') as f: + #f.write(data) if pyfile.status.type == "reconnected":#put it back in queque self.py_load_files.insert(0, pyfile) |