diff options
author | spoob <spoob@gmx.de> | 2010-04-08 21:45:05 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-04-08 21:45:05 +0200 |
commit | 8ea7bd3241016b2084eb923c37bf7e7a75a296eb (patch) | |
tree | f1f18eeebe6bfc315de9729642c5adda87e147ab /module/network | |
parent | Cleaned Megaupload (diff) | |
download | pyload-8ea7bd3241016b2084eb923c37bf7e7a75a296eb.tar.xz |
_.-:Package Folders:-._
Diffstat (limited to 'module/network')
-rwxr-xr-x | module/network/Request.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/network/Request.py b/module/network/Request.py index a074df7c4..76f94ae41 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -250,7 +250,6 @@ class Request: self.chunkRead += chunkSize self.dl_arrived += chunkSize - self.pycurl.setopt(pycurl.WRITEFUNCTION, writefunc) try: @@ -264,13 +263,14 @@ class Request: if self.abort: raise AbortDownload - - rename(file_temp, self.get_free_name(file_name)) + + free_name = self.get_free_name(file_name) + rename(file_temp, free_name) self.dl = False self.dl_finished = time.time() - return True + return free_name def updateCurrentSpeed(self, speed): self.dl_speed = speed |